Documentation
¶
Index ¶
- func InterfaceSlice(slice interface{}) ([]interface{}, error)
- func RandStr(strSize int, randType string) string
- type KContainer
- type KEmptyDir
- type KEnv
- type KGCEPersistentDisk
- type KHostDir
- type KMeta
- type KPod
- type KPort
- type KSpec
- type KVolume
- type KVolumeReference
- type KVolumeSource
- type UserContainer
- type UserContainerPort
- type UserEnvironmentVar
- type UserFile
- type UserFileReference
- type UserPod
- type UserResource
- type UserVolume
- type UserVolumeReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceSlice ¶
func InterfaceSlice(slice interface{}) ([]interface{}, error)
Types ¶
type KContainer ¶
type KContainer struct { Name string `json:"name"` Image string `json:"image"` Command []string `json:"command"` Args []string `json:"args"` WorkingDir string `json:"workingDir"` Resources map[string]interface{} `json:"resources"` CPU int Memory int64 Volumes []*KVolumeReference `json:"volumeMounts"` Ports []*KPort `json:"ports"` Env []*KEnv `json:"env"` }
type KGCEPersistentDisk ¶
type KGCEPersistentDisk struct{}
type KPod ¶
type KSpec ¶
type KSpec struct { Containers []*KContainer `json:"containers"` Volumes []*KVolume `json:"volumes"` RestartPolicy string `json:"restartPolicy"` DNSPolicy []string }
type KVolume ¶
type KVolume struct { Name string `json:"name"` Source *KVolumeSource `json:"source"` }
type KVolumeReference ¶
type KVolumeSource ¶
type KVolumeSource struct { EmptyDir *KEmptyDir `json:"emptyDir"` HostDir *KHostDir `json:"hostDir"` GCEPersistentDisk *KGCEPersistentDisk }
type UserContainer ¶
type UserContainer struct { Name string `json:"name"` Image string `json:"image"` Command []string `json:"command"` Workdir string `json:"workdir"` Entrypoint []string `json:"entrypoint"` Ports []UserContainerPort `json:"ports"` Envs []UserEnvironmentVar `json:"envs"` Volumes []UserVolumeReference `json:"volumes"` Files []UserFileReference `json:"files"` RestartPolicy string `json:"restartPolicy"` }
type UserContainerPort ¶
type UserContainerPort struct { HostPort int `json:"hostPort"` ContainerPort int `json:"containerPort"` ServicePort int `json:"servicePort"` Protocol string `json:"protocol"` }
Pod Data Structure
type UserEnvironmentVar ¶
type UserFileReference ¶
type UserPod ¶
type UserPod struct { Name string `json:"id"` Containers []UserContainer `json:"containers"` Resource UserResource `json:"resource"` Files []UserFile `json:"files"` Volumes []UserVolume `json:"volumes"` Tty bool `json:"tty"` Type string `json:"type"` }
func ProcessPodBytes ¶
func ProcessPodFile ¶
type UserResource ¶
type UserVolume ¶
type UserVolumeReference ¶
Click to show internal directories.
Click to hide internal directories.