Documentation ¶
Index ¶
- Variables
- func Upload(config UploadConfig) (string, error)
- type ConfigMapVolumeSource
- type Container
- type DeploymentConfig
- type DeploymentManager
- type EmptyDirVolumeSource
- type EnvVar
- type HostPathVolumeSource
- type KeyToPath
- type LabelSelector
- type ListMetadata
- type Metadata
- type Pod
- type PodList
- type PodSpec
- type PodTemplate
- type ReplicaSet
- type ReplicaSetSpec
- type ResourceList
- type ResourceRequirements
- type Scale
- type ScaleSpec
- type SecretVolumeSource
- type UploadConfig
- type Volume
- type VolumeMount
- type VolumeSource
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 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 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
type EmptyDirVolumeSource ¶
type EmptyDirVolumeSource struct{}
type HostPathVolumeSource ¶
type HostPathVolumeSource struct {
Path string `json:"path"`
}
type LabelSelector ¶
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 PodList ¶
type PodList struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ListMetadata `json:"metadata"` Items []Pod `json:"items"` }
type PodTemplate ¶
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 ResourceRequirements ¶
type ResourceRequirements struct { Limits ResourceList `json:"limits,omitempty"` Requests ResourceList `json:"requests,omitempty"` }
type SecretVolumeSource ¶
type UploadConfig ¶
type Volume ¶
type Volume struct { Name string `json:"name"` VolumeSource `json:",inline"` }
type VolumeMount ¶
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"` }
Click to show internal directories.
Click to hide internal directories.