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

package service

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

Index

Package Files

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

Constants

const (
    // Name is the identifier of the resource.
    Name = "servicev14patch4"
)

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.
    K8sClient kubernetes.Interface
    Logger    micrologger.Logger
}

Config represents the configuration used to create a new service resource.

func DefaultConfig Uses

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new service resource by best effort.

type Resource Uses

type Resource struct {
    // contains filtered or unexported fields
}

Resource implements the service resource.

func New Uses

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

New creates a new configured service 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{}) (*controller.Patch, error)

func (*Resource) NewUpdatePatch Uses

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

Package service imports 14 packages (graph) and is imported by 1 packages. Updated 2019-02-26. Refresh now. Tools for package owners.