Documentation ¶
Index ¶
- type Container
- func (w *Container) Args(arg []string) *Container
- func (w *Container) Build() v1.Container
- func (w *Container) Command(cmd []string) *Container
- func (w *Container) Image(image string) *Container
- func (w *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
- func (w *Container) Name(name string) *Container
- type DeploymentBuilder
- func (d *DeploymentBuilder) Build() *v1.Deployment
- func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder
- func (d *DeploymentBuilder) Name(name string) *DeploymentBuilder
- func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder
- func (d *DeploymentBuilder) OS(os string) *DeploymentBuilder
- func (d *DeploymentBuilder) PodLabel(labelKey string, labelValue string) *DeploymentBuilder
- func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder
- func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder
- type ENIConfigBuilder
- type JobBuilder
- func (j *JobBuilder) Build() *batchV1.Job
- func (j *JobBuilder) Container(container v1.Container) *JobBuilder
- func (j *JobBuilder) Name(name string) *JobBuilder
- func (j *JobBuilder) Namespace(namespace string) *JobBuilder
- func (j *JobBuilder) OS(os string) *JobBuilder
- func (j *JobBuilder) Parallelism(parallelism int) *JobBuilder
- func (j *JobBuilder) PodLabels(labelKey string, labelVal string) *JobBuilder
- func (j *JobBuilder) TerminationGracePeriod(terminationGracePeriod int) *JobBuilder
- type PodBuilder
- func (p *PodBuilder) Annotations(annotations map[string]string) *PodBuilder
- func (p *PodBuilder) Build() (*v1.Pod, error)
- func (p *PodBuilder) Container(container v1.Container) *PodBuilder
- func (p *PodBuilder) Labels(labels map[string]string) *PodBuilder
- func (p *PodBuilder) Name(name string) *PodBuilder
- func (p *PodBuilder) Namespace(namespace string) *PodBuilder
- func (p *PodBuilder) OS(os string) *PodBuilder
- func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder
- func (p *PodBuilder) ServiceAccount(serviceAccountName string) *PodBuilder
- func (p *PodBuilder) TerminationGracePeriod(terminationGracePeriod int) *PodBuilder
- type SGPBuilder
- func (s *SGPBuilder) Build() (*v1beta1.SecurityGroupPolicy, error)
- func (s *SGPBuilder) Name(name string) *SGPBuilder
- func (s *SGPBuilder) Namespace(namespace string) *SGPBuilder
- func (s *SGPBuilder) PodMatchExpression(key string, operator v1.LabelSelectorOperator, values ...string) *SGPBuilder
- func (s *SGPBuilder) PodMatchLabel(key string, value string) *SGPBuilder
- func (s *SGPBuilder) SecurityGroup(securityGroup []string) *SGPBuilder
- func (s *SGPBuilder) ServiceAccountMatchExpression(key string, operator v1.LabelSelectorOperator, values ...string) *SGPBuilder
- func (s *SGPBuilder) ServiceAccountMatchLabel(key string, value string) *SGPBuilder
- type ServiceAccountBuilder
- func (s *ServiceAccountBuilder) Build() *v1.ServiceAccount
- func (s *ServiceAccountBuilder) Label(labelKey string, labelValue string) *ServiceAccountBuilder
- func (s *ServiceAccountBuilder) Name(name string) *ServiceAccountBuilder
- func (s *ServiceAccountBuilder) Namespace(namespace string) *ServiceAccountBuilder
- type ServiceBuilder
- func (s *ServiceBuilder) Build() v1.Service
- func (s *ServiceBuilder) Name(name string) *ServiceBuilder
- func (s *ServiceBuilder) Namespace(namespace string) *ServiceBuilder
- func (s *ServiceBuilder) NodePort(nodePort int32) *ServiceBuilder
- func (s *ServiceBuilder) Port(port int32) *ServiceBuilder
- func (s *ServiceBuilder) Protocol(protocol v1.Protocol) *ServiceBuilder
- func (s *ServiceBuilder) Selector(labelKey string, labelVal string) *ServiceBuilder
- func (s *ServiceBuilder) ServiceType(serviceType v1.ServiceType) *ServiceBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v1.0.7
type Container struct {
// contains filtered or unexported fields
}
func NewBusyBoxContainerBuilder ¶ added in v1.0.7
func NewBusyBoxContainerBuilder() *Container
func NewWindowsContainerBuilder ¶ added in v1.0.7
func NewWindowsContainerBuilder() *Container
func (*Container) ImagePullPolicy ¶ added in v1.0.7
func (w *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
type DeploymentBuilder ¶
type DeploymentBuilder struct {
// contains filtered or unexported fields
}
func NewDefaultDeploymentBuilder ¶
func NewDefaultDeploymentBuilder() *DeploymentBuilder
func NewWindowsDeploymentBuilder ¶ added in v1.0.7
func NewWindowsDeploymentBuilder() *DeploymentBuilder
func (*DeploymentBuilder) Build ¶
func (d *DeploymentBuilder) Build() *v1.Deployment
func (*DeploymentBuilder) Container ¶
func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder
func (*DeploymentBuilder) Name ¶
func (d *DeploymentBuilder) Name(name string) *DeploymentBuilder
func (*DeploymentBuilder) Namespace ¶
func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder
func (*DeploymentBuilder) OS ¶
func (d *DeploymentBuilder) OS(os string) *DeploymentBuilder
func (*DeploymentBuilder) PodLabel ¶
func (d *DeploymentBuilder) PodLabel(labelKey string, labelValue string) *DeploymentBuilder
func (*DeploymentBuilder) Replicas ¶
func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder
func (*DeploymentBuilder) TerminationGracePeriod ¶
func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder
type ENIConfigBuilder ¶
type ENIConfigBuilder struct {
// contains filtered or unexported fields
}
func NewENIConfigBuilder ¶
func NewENIConfigBuilder() *ENIConfigBuilder
func (*ENIConfigBuilder) Name ¶
func (e *ENIConfigBuilder) Name(name string) *ENIConfigBuilder
func (*ENIConfigBuilder) SecurityGroup ¶
func (e *ENIConfigBuilder) SecurityGroup(securityGroup []string) *ENIConfigBuilder
func (*ENIConfigBuilder) SubnetID ¶
func (e *ENIConfigBuilder) SubnetID(subnetID string) *ENIConfigBuilder
type JobBuilder ¶ added in v1.0.7
type JobBuilder struct {
// contains filtered or unexported fields
}
func NewWindowsJob ¶ added in v1.0.7
func NewWindowsJob() *JobBuilder
func (*JobBuilder) Build ¶ added in v1.0.7
func (j *JobBuilder) Build() *batchV1.Job
func (*JobBuilder) Container ¶ added in v1.0.7
func (j *JobBuilder) Container(container v1.Container) *JobBuilder
func (*JobBuilder) Name ¶ added in v1.0.7
func (j *JobBuilder) Name(name string) *JobBuilder
func (*JobBuilder) Namespace ¶ added in v1.0.7
func (j *JobBuilder) Namespace(namespace string) *JobBuilder
func (*JobBuilder) OS ¶ added in v1.0.7
func (j *JobBuilder) OS(os string) *JobBuilder
func (*JobBuilder) Parallelism ¶ added in v1.0.7
func (j *JobBuilder) Parallelism(parallelism int) *JobBuilder
func (*JobBuilder) PodLabels ¶ added in v1.0.7
func (j *JobBuilder) PodLabels(labelKey string, labelVal string) *JobBuilder
func (*JobBuilder) TerminationGracePeriod ¶ added in v1.0.7
func (j *JobBuilder) TerminationGracePeriod(terminationGracePeriod int) *JobBuilder
type PodBuilder ¶
type PodBuilder struct {
// contains filtered or unexported fields
}
func NewDefaultPodBuilder ¶
func NewDefaultPodBuilder() *PodBuilder
func NewWindowsPodBuilder ¶ added in v1.0.7
func NewWindowsPodBuilder() *PodBuilder
func (*PodBuilder) Annotations ¶ added in v1.0.8
func (p *PodBuilder) Annotations(annotations map[string]string) *PodBuilder
func (*PodBuilder) Container ¶
func (p *PodBuilder) Container(container v1.Container) *PodBuilder
func (*PodBuilder) Labels ¶
func (p *PodBuilder) Labels(labels map[string]string) *PodBuilder
func (*PodBuilder) Name ¶
func (p *PodBuilder) Name(name string) *PodBuilder
func (*PodBuilder) Namespace ¶
func (p *PodBuilder) Namespace(namespace string) *PodBuilder
func (*PodBuilder) OS ¶
func (p *PodBuilder) OS(os string) *PodBuilder
func (*PodBuilder) RestartPolicy ¶ added in v1.0.7
func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder
func (*PodBuilder) ServiceAccount ¶
func (p *PodBuilder) ServiceAccount(serviceAccountName string) *PodBuilder
func (*PodBuilder) TerminationGracePeriod ¶
func (p *PodBuilder) TerminationGracePeriod(terminationGracePeriod int) *PodBuilder
type SGPBuilder ¶
type SGPBuilder struct {
// contains filtered or unexported fields
}
func NewSGPBuilder ¶
func NewSGPBuilder() *SGPBuilder
func (*SGPBuilder) Build ¶
func (s *SGPBuilder) Build() (*v1beta1.SecurityGroupPolicy, error)
func (*SGPBuilder) Name ¶
func (s *SGPBuilder) Name(name string) *SGPBuilder
func (*SGPBuilder) Namespace ¶
func (s *SGPBuilder) Namespace(namespace string) *SGPBuilder
func (*SGPBuilder) PodMatchExpression ¶
func (s *SGPBuilder) PodMatchExpression(key string, operator v1.LabelSelectorOperator, values ...string) *SGPBuilder
func (*SGPBuilder) PodMatchLabel ¶
func (s *SGPBuilder) PodMatchLabel(key string, value string) *SGPBuilder
func (*SGPBuilder) SecurityGroup ¶
func (s *SGPBuilder) SecurityGroup(securityGroup []string) *SGPBuilder
func (*SGPBuilder) ServiceAccountMatchExpression ¶
func (s *SGPBuilder) ServiceAccountMatchExpression(key string, operator v1.LabelSelectorOperator, values ...string) *SGPBuilder
func (*SGPBuilder) ServiceAccountMatchLabel ¶
func (s *SGPBuilder) ServiceAccountMatchLabel(key string, value string) *SGPBuilder
type ServiceAccountBuilder ¶
type ServiceAccountBuilder struct {
// contains filtered or unexported fields
}
func NewServiceAccountBuilder ¶
func NewServiceAccountBuilder() *ServiceAccountBuilder
func (*ServiceAccountBuilder) Build ¶
func (s *ServiceAccountBuilder) Build() *v1.ServiceAccount
func (*ServiceAccountBuilder) Label ¶
func (s *ServiceAccountBuilder) Label(labelKey string, labelValue string) *ServiceAccountBuilder
func (*ServiceAccountBuilder) Name ¶
func (s *ServiceAccountBuilder) Name(name string) *ServiceAccountBuilder
func (*ServiceAccountBuilder) Namespace ¶
func (s *ServiceAccountBuilder) Namespace(namespace string) *ServiceAccountBuilder
type ServiceBuilder ¶ added in v1.0.7
type ServiceBuilder struct {
// contains filtered or unexported fields
}
func NewHTTPService ¶ added in v1.0.7
func NewHTTPService() *ServiceBuilder
func (*ServiceBuilder) Build ¶ added in v1.0.7
func (s *ServiceBuilder) Build() v1.Service
func (*ServiceBuilder) Name ¶ added in v1.0.7
func (s *ServiceBuilder) Name(name string) *ServiceBuilder
func (*ServiceBuilder) Namespace ¶ added in v1.0.7
func (s *ServiceBuilder) Namespace(namespace string) *ServiceBuilder
func (*ServiceBuilder) NodePort ¶ added in v1.0.7
func (s *ServiceBuilder) NodePort(nodePort int32) *ServiceBuilder
func (*ServiceBuilder) Port ¶ added in v1.0.7
func (s *ServiceBuilder) Port(port int32) *ServiceBuilder
func (*ServiceBuilder) Protocol ¶ added in v1.0.7
func (s *ServiceBuilder) Protocol(protocol v1.Protocol) *ServiceBuilder
func (*ServiceBuilder) Selector ¶ added in v1.0.7
func (s *ServiceBuilder) Selector(labelKey string, labelVal string) *ServiceBuilder
func (*ServiceBuilder) ServiceType ¶ added in v1.0.7
func (s *ServiceBuilder) ServiceType(serviceType v1.ServiceType) *ServiceBuilder
Click to show internal directories.
Click to hide internal directories.