Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotations ¶
type CronJob ¶
type CronJob struct { APIVersion string `json:"apiVersion" yaml:"apiVersion"` Kind string `json:"kind"` Metadata struct { Name string `json:"name"` Annotations Annotations `json:"annotations" yaml:"annotations,omitempty"` } `json:"metadata"` Spec struct { ConcurrencyPolicy string `json:"concurrencyPolicy" yaml:"concurrencyPolicy"` Schedule string `json:"string"` JobTemplate struct { Spec struct { Template struct { Spec struct { DNSPolicy string `json:"dnsPolicy" yaml:"dnsPolicy"` RestartPolicy string `json:"restartPolicy" yaml:"restartPolicy"` Containers []Container `json:"containers"` } } `json:"template"` } `json:"spec"` } `json:"jobTemplate" yaml:"jobTemplate"` } `json:"spec"` }
func NewCronJob ¶
type Deployment ¶
type Deployment struct { APIVersion string `json:"apiVersion" yaml:"apiVersion"` Kind string `json:"kind"` Metadata struct { Name string `json:"name"` Labels struct { App string `json:"app"` } `json:"labels"` } `json:"metadata"` Spec struct { Replicas int `json:"replicas"` Selector struct { MatchLabels struct { App string `json:"app"` } `json:"matchLabels" yaml:"matchLabels"` } `json:"selector"` Template struct { Metadata struct { Labels struct { App string `json:"app"` } `json:"labels"` } `json:"metadata"` Spec struct { DNSPolicy string `json:"dnsPolicy" yaml:"dnsPolicy"` DNSConfig struct { Options []Option `json:"options"` } `json:"dnsConfig" yaml:"dnsConfig"` Containers []Container `json:"containers"` } `json:"spec"` } `json:"template"` } `json:"spec"` }
func NewDeployment ¶
type Port ¶
type Port struct {
ContainerPort int `json:"containerPort" yaml:"containerPort,omitempty"`
}
type Resources ¶
type Resources struct { Requests struct { Memory string `json:"memory" yaml:"memory,omitempty"` CPU string `json:"cpu" yaml:"cpu,omitempty"` } `json:"requests" yaml:"requests,omitempty"` Limits struct { Memory string `json:"memory" yaml:"memory,omitempty"` CPU string `json:"cpu" yaml:"cpu,omitempty"` } `json:"limits" yaml:"limits,omitempty"` }
func NewResources ¶
type Service ¶
type Service struct { APIVersion string `json:"apiVersion" yaml:"apiVersion"` Kind string `json:"kind"` Metadata struct { Name string `json:"name"` Labels struct { App string `json:"app"` } `json:"labels"` } `json:"metadata"` Spec struct { LoadBalancerIP string `json:"loadBalancerIP" yaml:"loadBalancerIP"` Ports []ServicePort `json:"ports"` Selector struct { App string `json:"app"` } `json:"selector"` SessionAffinity string `json:"sessionAffinity" yaml:"sessionAffinity"` Type string `json:"type"` } `json:"spec"` }
type ServicePort ¶
Click to show internal directories.
Click to hide internal directories.