kvm-operator: github.com/giantswarm/kvm-operator/service/controller/resource/configmap Index | Files

package configmap

import "github.com/giantswarm/kvm-operator/service/controller/resource/configmap"


Package Files

create.go current.go delete.go desired.go error.go resource.go update.go


const (
    KeyUserData = "user_data"
    // Name is the identifier of the resource.
    Name = "configmap"

func IsInvalidConfig Uses

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound Uses

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongTypeError Uses

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

type Config Uses

type Config struct {
    // Dependencies.
    CertsSearcher  certs.Interface
    CloudConfig    *cloudconfig.CloudConfig
    G8sClient      versioned.Interface
    K8sClient      kubernetes.Interface
    KeyWatcher     randomkeys.Interface
    Logger         micrologger.Logger
    RegistryDomain string

Config represents the configuration used to create a new config map resource.

type Resource Uses

type Resource struct {
    // contains filtered or unexported fields

Resource implements the config map resource.

func New Uses

func New(config Config) (*Resource, error)

New creates a new configured config map resource.

func (*Resource) ApplyCreateChange Uses

func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error

func (*Resource) ApplyDeleteChange Uses

func (r *Resource) ApplyDeleteChange(ctx context.Context, obj, deleteChange interface{}) error

func (*Resource) ApplyUpdateChange Uses

func (r *Resource) ApplyUpdateChange(ctx context.Context, obj, updateChange interface{}) error

func (*Resource) GetCurrentState Uses

func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error)

func (*Resource) GetDesiredState Uses

func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) (interface{}, error)

func (*Resource) Name Uses

func (r *Resource) Name() string

func (*Resource) NewDeletePatch Uses

func (r *Resource) NewDeletePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*crud.Patch, error)

func (*Resource) NewUpdatePatch Uses

func (r *Resource) NewUpdatePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*crud.Patch, error)

Package configmap imports 21 packages (graph) and is imported by 1 packages. Updated 2020-08-02. Refresh now. Tools for package owners.