kargo

package module
v0.0.0-...-c4eed5e Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: Apache-2.0 Imports: 19 Imported by: 1

README

kargo

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableKubernetes bool
)
View Source
var ErrNotExist = errors.New("does not exist")

Functions

func Upload

func Upload(config UploadConfig) (string, error)

Types

type ConfigMapVolumeSource

type ConfigMapVolumeSource struct {
	Name  string      `json:"name,omitempty"`
	Items []KeyToPath `json:"items,omitempty"`
}

type Container

type Container struct {
	Args            []string             `json:"args"`
	Command         []string             `json:"command"`
	Env             []EnvVar             `json:"env,omitempty"`
	Image           string               `json:"image"`
	ImagePullPolicy string               `json:"imagePullPolicy,omitempty"`
	Name            string               `json:"name"`
	VolumeMounts    []VolumeMount        `json:"volumeMounts"`
	Resources       ResourceRequirements `json:"resources,omitempty"`
}

type DeploymentConfig

type DeploymentConfig struct {
	Annotations map[string]string
	Args        []string
	Env         map[string]string
	BinaryURL   string

	Name      string
	Namespace string
	Replicas  int
	Labels    map[string]string
	// contains filtered or unexported fields
}

type DeploymentManager

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

func New

func New() *DeploymentManager

func (*DeploymentManager) Create

func (dm *DeploymentManager) Create(config DeploymentConfig) error

func (*DeploymentManager) Delete

func (dm *DeploymentManager) Delete() error

func (*DeploymentManager) Logs

func (dm *DeploymentManager) Logs(w io.Writer) error

type EmptyDirVolumeSource

type EmptyDirVolumeSource struct{}

type EnvVar

type EnvVar struct {
	Name  string `json:"name"`
	Value string `json:"value,omitempty"`
}

type HostPathVolumeSource

type HostPathVolumeSource struct {
	Path string `json:"path"`
}

type KeyToPath

type KeyToPath struct {
	Key  string `json:"key"`
	Path string `json:"path"`
}

type LabelSelector

type LabelSelector struct {
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

type ListMetadata

type ListMetadata struct {
	ResourceVersion string `json:"resourceVersion"`
}

type Metadata

type Metadata struct {
	Name            string            `json:"name"`
	Namespace       string            `json:"namespace"`
	GenerateName    string            `json:"generateName"`
	ResourceVersion string            `json:"resourceVersion"`
	SelfLink        string            `json:"selfLink"`
	Labels          map[string]string `json:"labels"`
	Annotations     map[string]string `json:"annotations"`
	Uid             string            `json:"uid"`
}

type Pod

type Pod struct {
	Kind     string   `json:"kind,omitempty"`
	Metadata Metadata `json:"metadata"`
	Spec     PodSpec  `json:"spec"`
}

type PodList

type PodList struct {
	ApiVersion string       `json:"apiVersion"`
	Kind       string       `json:"kind"`
	Metadata   ListMetadata `json:"metadata"`
	Items      []Pod        `json:"items"`
}

type PodSpec

type PodSpec struct {
	Containers     []Container `json:"containers"`
	InitContainers []Container `json:"initContainers"`
	Volumes        []Volume    `json:"volumes,omitempty"`
}

type PodTemplate

type PodTemplate struct {
	Metadata Metadata `json:"metadata"`
	Spec     PodSpec  `json:"spec"`
}

type ReplicaSet

type ReplicaSet struct {
	ApiVersion string         `json:"apiVersion,omitempty"`
	Kind       string         `json:"kind,omitempty"`
	Metadata   Metadata       `json:"metadata"`
	Spec       ReplicaSetSpec `json:"spec"`
}

type ReplicaSetSpec

type ReplicaSetSpec struct {
	Replicas int64         `json:"replicas,omitempty"`
	Selector LabelSelector `json:"selector,omitempty"`
	Template PodTemplate   `json:"template,omitempty"`
}

type ResourceList

type ResourceList map[string]string

type ResourceRequirements

type ResourceRequirements struct {
	Limits   ResourceList `json:"limits,omitempty"`
	Requests ResourceList `json:"requests,omitempty"`
}

type Scale

type Scale struct {
	ApiVersion string    `json:"apiVersion,omitempty"`
	Kind       string    `json:"kind,omitempty"`
	Metadata   Metadata  `json:"metadata"`
	Spec       ScaleSpec `json:"spec,omitempty"`
}

type ScaleSpec

type ScaleSpec struct {
	Replicas int64 `json:"replicas,omitempty"`
}

type SecretVolumeSource

type SecretVolumeSource struct {
	SecretName string      `json:"secretName,omitempty"`
	Items      []KeyToPath `json:"items,omitempty"`
}

type UploadConfig

type UploadConfig struct {
	BucketName string
	ObjectName string
	ProjectID  string
	Path       string
}

type Volume

type Volume struct {
	Name         string `json:"name"`
	VolumeSource `json:",inline"`
}

type VolumeMount

type VolumeMount struct {
	Name      string `json:"name"`
	MountPath string `json:"mountPath"`
}

type VolumeSource

type VolumeSource struct {
	HostPath  *HostPathVolumeSource  `json:"hostPath,omitempty"`
	EmptyDir  *EmptyDirVolumeSource  `json:"emptyDir,omitempty"`
	Secret    *SecretVolumeSource    `json:"secret,omitempty"`
	ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"`
}

Jump to

Keyboard shortcuts

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