Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct { Name string `json:"name"` Image string `json:"image"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` WorkingDir string `json:"workingDir,omitempty"` Ports []port `json:"ports,omitempty"` Env []envVar `json:"env,omitempty"` VolumeMounts []volumeMount `json:"volumeMounts,omitempty"` SecurityContext *secCtx `json:"securityContext,omitempty"` TTY bool `json:"tty,omitempty"` }
Container is a struct reoresenting a k8s container API object
func NewContainer ¶
NewContainer returns a pointer to a Container struct
type Driver ¶
type Driver struct { manager.Driver Host string MaestroVersion string Client *http.Client Mounts []config.Mount }
Driver is a struct for the k8s Driver
func (*Driver) CreateNamespace ¶
CreateNamespace creates a maestro k8s namespace if one does not exist
func (*Driver) CreateSvcAccnt ¶
CreateSvcAccnt creates a kubernetes svc accnt
func (Driver) DestroyWorker ¶
DestroyWorker will delete a maestro pod
type Namespace ¶
type Namespace struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata nsMetadata `json:"metadata"` }
Namespace is a struct for creating k8s Namespaces
type Pod ¶
type Pod struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata podMetadata `json:"metadata"` Spec podSpec `json:"spec"` }
Pod is a struct for creating k8s pods
type ServiceAccount ¶
type ServiceAccount struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata saMetadata `json:"metadata"` }
ServiceAccount is a struct for creating svc accnts
type Volume ¶
type Volume struct { Name string `json:"name"` Type string `json:"-"` HostPath *hostPath `json:"hostPath,omitempty"` GCEPersistentDisk *gcePersistentDisk `json:"gcePersistentDisk,omitempty"` AWSElasticBlockStore *awsElasticBlockStore `json:"awsElasticBlockStore,omitempty"` NFS *nfs `json:"nfs,omitempty"` GlusterFS *gluster `json:"glusterfs,omitempty"` PersistentVolumeClaim *claim `json:"persistentVolumeClaim,omitempty"` Cinder *cinder `json:"cinder,omitempty"` Flocker *flocker `json:"flocker,omitempty"` }
Volume is a struct for creating volumes in k8s
Click to show internal directories.
Click to hide internal directories.