Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CRDDirectoryPaths []string Builder OperationFn Cleaner OperationFn ManagerOptions manager.Options }
Config is a set of configuration values for Athodyd setup.
type Manager ¶
Manager wraps a controller-runtime manager with additional functionality.
type OperationFn ¶
type OperationFn func(*envtest.Environment, client.Client) error
OperationFn is a function that uses a Kubernetes client to perform and operation
func NewCleaner ¶
func NewCleaner() OperationFn
NewCleaner returns a new Cleaner that deletes all installed CRDs from the API server.
type Option ¶
type Option func(*Config)
An Option configures an Athodyd Config.
func WithBuilder ¶
func WithBuilder(builder OperationFn) Option
WithBuilder sets a custom builder function for an Athodyd Config.
func WithCRDDirectoryPaths ¶
WithCRDDirectoryPaths sets custom CRD locations for an Athodyd Config.
func WithCleaner ¶
func WithCleaner(cleaner OperationFn) Option
WithCleaner sets a custom cleaner function for an Athodyd Config.
func WithManagerOptions ¶
WithManagerOptions sets custom options for the manager configured by Athodyd Config.