Documentation ¶
Overview ¶
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- 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 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) 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BusyBoxContainer = v1.Container{ Name: "busybox", Image: "busybox", Command: []string{"sleep", "3600"}, ImagePullPolicy: "IfNotPresent", } WindowsContainer = v1.Container{ Name: "windows-server-iis", Image: "mcr.microsoft.com/windows/servercore:1809", Ports: []v1.ContainerPort{{ Name: "http", ContainerPort: 80, }}, } )
Functions ¶
This section is empty.
Types ¶
type DeploymentBuilder ¶
type DeploymentBuilder struct {
// contains filtered or unexported fields
}
func NewDefaultDeploymentBuilder ¶
func NewDefaultDeploymentBuilder() *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 PodBuilder ¶
type PodBuilder struct {
// contains filtered or unexported fields
}
func NewDefaultPodBuilder ¶
func NewDefaultPodBuilder() *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) 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
Click to show internal directories.
Click to hide internal directories.