Documentation ¶
Index ¶
- Variables
- type AccessModes
- type ApplicationType
- type Client
- type ConnectionProtocol
- type ContainerPortSpec
- type ContainerSpec
- type DaemonsetSpec
- type DeploymentSpec
- type EnvVars
- type KubeDaemonsetBuilder
- type KubeDeploymentBuilder
- type KubePersistentVolumeBuilder
- type KubeServiceAccountBuilder
- type KubeServiceBuilder
- type Metadata
- type ObjectRef
- type PersistentVolumeSpec
- type ServiceAccountSpec
- type ServicePortSpec
- type ServiceSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var ReadOnlyManyAccessModes = AccessModes("ReadOnlyMany")
View Source
var ReadWriteManyAccessModes = AccessModes("ReadWriteMany")
View Source
var ReadWriteOnceAccessModes = AccessModes("ReadWriteOnce")
Functions ¶
This section is empty.
Types ¶
type AccessModes ¶
type AccessModes string
type ApplicationType ¶
type ApplicationType string
type Client ¶
type Client struct { KubeDeploymentBuilder KubeDaemonsetBuilder KubeServiceAccountBuilder KubeServiceBuilder }
func (Client) CreateDaemonset ¶
func (l Client) CreateDaemonset(spec DaemonsetSpec) appsv1.DaemonSet
func (Client) CreateDeployment ¶
func (l Client) CreateDeployment(spec DeploymentSpec) appsv1.Deployment
func (Client) CreateService ¶
func (l Client) CreateService(spec ServiceSpec) corev1.Service
func (Client) CreateServiceAccount ¶
func (l Client) CreateServiceAccount(spec ServiceAccountSpec) corev1.ServiceAccount
type ConnectionProtocol ¶
type ConnectionProtocol string
var SCTPConnectionProtocol ConnectionProtocol = "SCTP"
var TCPConnectionProtocol ConnectionProtocol = "TCP"
var UDPConnectionProtocol ConnectionProtocol = "UDP"
type ContainerPortSpec ¶
type ContainerPortSpec struct { Name string `json:"name,omitempty"` Port int `json:"port"` IsHostPort bool `json:"is-host-port"` ServiceProtocol string `json:"service-protocol"` ConnectionProtocol ConnectionProtocol `json:"connection-protocol"` }
type ContainerSpec ¶
type DaemonsetSpec ¶
type DaemonsetSpec struct { Metadata Metadata `json:"metadata"` ServiceAccount ObjectRef `json:"service-account"` Containers []ContainerSpec `json:"containers"` }
type DeploymentSpec ¶
type DeploymentSpec struct { Metadata Metadata `json:"metadata"` Replicas int32 `json:"replicas"` ServiceAccount ObjectRef `json:"service-account"` Containers []ContainerSpec `json:"containers"` }
type KubeDaemonsetBuilder ¶
type KubeDaemonsetBuilder interface {
CreateDaemonset(spec DaemonsetSpec) appsv1.DaemonSet
}
type KubeDeploymentBuilder ¶
type KubeDeploymentBuilder interface {
CreateDeployment(spec DeploymentSpec) appsv1.Deployment
}
type KubePersistentVolumeBuilder ¶
type KubePersistentVolumeBuilder interface {
CreatePersistentVolume(spec PersistentVolumeSpec) corev1.PersistentVolume
}
type KubeServiceAccountBuilder ¶
type KubeServiceAccountBuilder interface {
CreateServiceAccount(spec ServiceAccountSpec) corev1.ServiceAccount
}
type KubeServiceBuilder ¶
type KubeServiceBuilder interface {
CreateService(spec ServiceSpec) corev1.Service
}
type PersistentVolumeSpec ¶
type PersistentVolumeSpec struct { Metadata Metadata `json:"metadata"` AccessModes AccessModes `json:"access-modes"` }
type ServiceAccountSpec ¶
type ServiceAccountSpec struct {
Metadata Metadata `json:"metadata"`
}
type ServicePortSpec ¶
type ServiceSpec ¶
type ServiceSpec struct { Metadata Metadata `json:"metadata"` Ports []ServicePortSpec `json:"ports"` }
Click to show internal directories.
Click to hide internal directories.