package
2.0.0-20221108114759-4c0a9086593c
Repository: https://github.com/mever/gocharm.git
Documentation: pkg.go.dev
# Packages
Package hooktest contains utilities for testing gocharm hooks.
# Functions
Main creates a new context from the environment and invokes the appropriate command or hook functions from the given registry or sub-registries of it.
NewContextFromEnvironment creates a hook context from the current environment, using the given tool runner to acquire information to populate the context, and the given registry to determine which relations to fetch information for.
NewDiskState returns an implementation of PersistentState that stores state in the given directory.
NewRegistry returns a new hook registry.
RegisterMainHooks registers any hooks that are needed by any charm.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Interfaces
Command is implemented by running commands that implement long-lived services.
PersistentState is used to save persistent charm state to disk.
ToolRunner is used to run hook tools.
# Type aliases
ContextSetter is the type of a function that can set the context for a hook.
RelationId is the type of the id of a relation.
Status represents the current status of a charm.
UnitId is the type of the id of a unit.