pkg

package
v0.0.0-...-7d07e6c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

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 ContainerSpec struct {
	Args    []string            `json:"args"`
	Command []string            `json:"command"`
	Env     []EnvVars           `json:"env"`
	Image   string              `json:"image"`
	Name    string              `json:"name"`
	Ports   []ContainerPortSpec `json:"ports"`
}

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 EnvVars

type EnvVars struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

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 Metadata

type Metadata struct {
	Name        string            `json:"name"`
	Namespace   string            `json:"namespace"`
	Version     string            `json:"version"`
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
}

type ObjectRef

type ObjectRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

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 ServicePortSpec struct {
	Name            string `json:"name,omitempty"`
	Port            int    `json:"port"`
	IsHostPort      bool   `json:"is-host-port"`
	ServiceProtocol string `json:"service-protocol"`
}

type ServiceSpec

type ServiceSpec struct {
	Metadata Metadata          `json:"metadata"`
	Ports    []ServicePortSpec `json:"ports"`
}

Jump to

Keyboard shortcuts

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