patch

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSPC

type CSPC struct {
	Object *apis.CStorPoolCluster
	Data   []byte
	Client clientset.Interface
}

CSPC ...

func NewCSPC

func NewCSPC(opts ...CSPCOptions) *CSPC

NewCSPC ...

func (*CSPC) Get

func (c *CSPC) Get(name, namespace string) error

Get ...

func (*CSPC) Patch

func (c *CSPC) Patch(from, to string) error

Patch ...

func (*CSPC) PreChecks

func (c *CSPC) PreChecks(from, to string) error

PreChecks ...

type CSPCOptions

type CSPCOptions func(*CSPC)

CSPCOptions ...

func WithCSPCClient

func WithCSPCClient(c clientset.Interface) CSPCOptions

WithCSPCClient ...

type CSPI

type CSPI struct {
	Object *apis.CStorPoolInstance
	Data   []byte
	Client clientset.Interface
}

CSPI ...

func NewCSPI

func NewCSPI(opts ...CSPIOptions) *CSPI

NewCSPI ...

func (*CSPI) Get

func (c *CSPI) Get(name, namespace string) error

Get ...

func (*CSPI) Patch

func (c *CSPI) Patch(from, to string) error

Patch ...

func (*CSPI) PreChecks

func (c *CSPI) PreChecks(from, to string) error

PreChecks ...

type CSPIOptions

type CSPIOptions func(*CSPI)

CSPIOptions ...

func WithCSPIClient

func WithCSPIClient(c clientset.Interface) CSPIOptions

WithCSPIClient ...

type CV

type CV struct {
	Object *apis.CStorVolume
	Data   []byte
	Client clientset.Interface
}

CV ...

func NewCV

func NewCV(opts ...CVOptions) *CV

NewCV ...

func (*CV) Get

func (c *CV) Get(name, namespace string) error

Get ...

func (*CV) Patch

func (c *CV) Patch(from, to string) error

Patch ...

func (*CV) PreChecks

func (c *CV) PreChecks(from, to string) error

PreChecks ...

type CVC

type CVC struct {
	Object *apis.CStorVolumeConfig
	Data   []byte
	Client clientset.Interface
}

CVC ...

func NewCVC

func NewCVC(opts ...CVCOptions) *CVC

NewCVC ...

func (*CVC) Get

func (c *CVC) Get(name, namespace string) error

Get ...

func (*CVC) Patch

func (c *CVC) Patch(from, to string) error

Patch ...

func (*CVC) PreChecks

func (c *CVC) PreChecks(from, to string) error

PreChecks ...

type CVCOptions

type CVCOptions func(*CVC)

CVCOptions ...

func WithCVCClient

func WithCVCClient(c clientset.Interface) CVCOptions

WithCVCClient ...

type CVOptions

type CVOptions func(*CV)

CVOptions ...

func WithCVClient

func WithCVClient(c clientset.Interface) CVOptions

WithCVClient ...

type CVR

type CVR struct {
	Object *apis.CStorVolumeReplica
	Data   []byte
	Client clientset.Interface
}

CVR ...

func NewCVR

func NewCVR(opts ...CVROptions) *CVR

NewCVR ...

func (*CVR) Get

func (c *CVR) Get(name, namespace string) error

Get ...

func (*CVR) Patch

func (c *CVR) Patch(from, to string) error

Patch ...

func (*CVR) PreChecks

func (c *CVR) PreChecks(from, to string) error

PreChecks ...

type CVROptions

type CVROptions func(*CVR)

CVROptions ...

func WithCVRClient

func WithCVRClient(c clientset.Interface) CVROptions

WithCVRClient ...

type Deployment

type Deployment struct {
	Object *appsv1.Deployment
	Data   []byte
	Client kubernetes.Interface
}

Deployment ...

func NewDeployment

func NewDeployment(opts ...DeploymentOptions) *Deployment

NewDeployment ...

func (*Deployment) Get

func (d *Deployment) Get(label, namespace string) error

Get ...

func (*Deployment) Patch

func (d *Deployment) Patch(from, to string) error

Patch ...

func (*Deployment) PreChecks

func (d *Deployment) PreChecks(from, to string) error

PreChecks ...

type DeploymentOptions

type DeploymentOptions func(*Deployment)

DeploymentOptions ...

func WithDeploymentClient

func WithDeploymentClient(c kubernetes.Interface) DeploymentOptions

WithDeploymentClient ...

type Patcher

type Patcher interface {
	PreChecks(from, to string) error
	Patch(from, to string) error
}

Patcher abstracts the patching of components

type Service

type Service struct {
	Object *corev1.Service
	Data   []byte
	Client kubernetes.Interface
}

Service ...

func NewService

func NewService(opts ...ServiceOptions) *Service

NewService ...

func (*Service) Get

func (s *Service) Get(label, namespace string) error

Get ...

func (*Service) Patch

func (s *Service) Patch(from, to string) error

Patch ...

func (*Service) PreChecks

func (s *Service) PreChecks(from, to string) error

PreChecks ...

type ServiceOptions

type ServiceOptions func(*Service)

ServiceOptions ...

func WithKubeClient

func WithKubeClient(c kubernetes.Interface) ServiceOptions

WithKubeClient ...

Jump to

Keyboard shortcuts

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