Documentation
¶
Index ¶
- func GetKeyProvider(registry registry.Registry) (*keys.KeyProvider, error)
- func GetPublicKey(registry registry.Registry, dogu string) (*keys.PublicKey, error)
- func NewCollectApplier(applier applier) *collectApplier
- func NewCommandExecutor(client kubernetes.Interface, coreV1RestClient rest.Interface) *exposedCommandExecutor
- func NewDoguSecretsWriter(client client.Client, registry registry.Registry) *doguSecretWriter
- func NewResourceGenerator(scheme *runtime.Scheme, limitPatcher limitPatcher) *resourceGenerator
- func NewUpserter(client client.Client, limitPatcher limitPatcher) *upserter
- type ResourceStateError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyProvider ¶ added in v0.5.0
func GetKeyProvider(registry registry.Registry) (*keys.KeyProvider, error)
GetKeyProvider returns the key provider from the global configuration.
func GetPublicKey ¶ added in v0.5.0
GetPublicKey returns the public key from the dogu configuration.
func NewCollectApplier ¶ added in v0.12.0
func NewCollectApplier(applier applier) *collectApplier
NewCollectApplier creates a K8s resource applier that filters and collects deployment resources for a later, customized application.
func NewCommandExecutor ¶
func NewCommandExecutor(client kubernetes.Interface, coreV1RestClient rest.Interface) *exposedCommandExecutor
NewCommandExecutor creates a new instance of NewCommandExecutor
func NewDoguSecretsWriter ¶ added in v0.5.0
NewDoguSecretsWriter creates a new instance of doguSecretWriter to save key value pairs from secrets to the dogu config
func NewResourceGenerator ¶
NewResourceGenerator creates a new generator for k8s resources
func NewUpserter ¶ added in v0.12.0
NewUpserter creates a new upserter that generates dogu resources and applies them to the cluster.
Types ¶
type ResourceStateError ¶ added in v0.12.0
type ResourceStateError struct {
// contains filtered or unexported fields
}
ResourceStateError is returned when a specific resource (pod/dogu) is not ready yet.
func (*ResourceStateError) Error ¶ added in v0.12.0
func (e *ResourceStateError) Error() string
Report returns the error in string representation
func (*ResourceStateError) Requeue ¶ added in v0.12.0
func (e *ResourceStateError) Requeue() bool
Requeue determines if the current dogu operation should be requeue when this error was responsible for its failure