resource

package
v0.0.0-...-1c6c245 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const RouteOwnerAnnotation = "imageregistry.openshift.io"

Variables

This section is empty.

Functions

func Name

func Name(o Getter) string

func RouteIsCreatedByOperator

func RouteIsCreatedByOperator(route *routeapi.Route) bool

Types

type Generator

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

func NewGenerator

func NewGenerator(kubeconfig *rest.Config, clients *client.Clients, listers *client.Listers, params *parameters.Globals) *Generator

func (*Generator) Apply

func (g *Generator) Apply(cr *imageregistryv1.Config) error

func (*Generator) ApplyClusterOperator

func (g *Generator) ApplyClusterOperator(cr *imageregistryv1.Config) error

func (*Generator) Remove

func (g *Generator) Remove(cr *imageregistryv1.Config) error

type Getter

type Getter interface {
	Type() runtime.Object
	GetName() string
	GetNamespace() string
	GetGroup() string
	GetResource() string
	Get() (runtime.Object, error)
}

type Mutator

type Mutator interface {
	Getter
	Create() (runtime.Object, error)
	Update(o runtime.Object) (runtime.Object, bool, error)
	Delete(opts *metaapi.DeleteOptions) error
	// Owned indicates whether this resource is explicitly owned by the registry operator
	// and therefore should be removed when the registry config resource is removed.
	Owned() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL