common_types

package
v0.0.0-...-ac771f7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: BSD-3-Clause Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const (
	AppStatusNotSet     = "UNSET"
	AppStatusNotRunning = "NOT_RUNNING"
	AppStatusRunning    = "RUNNING"
	AppStatusFrozen     = "FROZEN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCrCreator

type AppCrCreator func() OperatorCr

type AppPodFixIp

type AppPodFixIp struct {
	Db string `json:"db"`
}

func (*AppPodFixIp) DeepCopy

func (in *AppPodFixIp) DeepCopy() *AppPodFixIp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPodFixIp.

func (*AppPodFixIp) DeepCopyInto

func (in *AppPodFixIp) DeepCopyInto(out *AppPodFixIp)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppReportedData

type AppReportedData interface {
	SetPrivateNetworkIpAddress(privateNetworkIpAddress map[string]string)
}

type AppStatus

type AppStatus string

type Network

type Network struct {
	ApnUUID          string   `json:"apnUUID,omitempty"`
	NetworkID        string   `json:"networkId,omitempty"`
	AdditionalRoutes []string `json:"additionalRoutes,omitempty"`
}

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OperatorCr

type OperatorCr interface {
	GetTypeMeta() metav1.TypeMeta
	GetObjectMeta() metav1.ObjectMeta
	GetSpec() OperatorSpec
	GetStatus() OperatorStatus
	metav1.Object
	runtime.Object
}

type OperatorSpec

type OperatorSpec interface {
	GetPrivateNetworkAccess() *PrivateNetworkAccess
}

type OperatorStatus

type OperatorStatus interface {
	SetAppStatus(status AppStatus)
	GetAppStatus() AppStatus
	GetAppliedResources() []k8sdynamic.ResourceDescriptor
	SetAppliedResources(resources []k8sdynamic.ResourceDescriptor)
	GetPrevSpec() OperatorSpec
	GetPrevSpecDeepCopy() OperatorSpec
	SetPrevSpec(spec OperatorSpec) error
	GetAppReportedData() AppReportedData
}

type PrivateNetworkAccess

type PrivateNetworkAccess struct {
	Networks             []Network    `json:"networks,omitempty"`
	AppNetwork           string       `json:"appNetwork"`
	NetworkInterfaceName string       `json:"networkInterfaceName,omitempty"`
	AppPodFixIp          *AppPodFixIp `json:"appPodFixIp,omitempty"`
}

func (*PrivateNetworkAccess) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkAccess.

func (*PrivateNetworkAccess) DeepCopyInto

func (in *PrivateNetworkAccess) DeepCopyInto(out *PrivateNetworkAccess)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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