Documentation ¶
Index ¶
- type EgressIPBuilder
- func (builder *EgressIPBuilder) Create() (*EgressIPBuilder, error)
- func (builder *EgressIPBuilder) Delete() (*EgressIPBuilder, error)
- func (builder *EgressIPBuilder) Exists() bool
- func (builder *EgressIPBuilder) Get() (*egressipv1.EgressIP, error)
- func (builder *EgressIPBuilder) GetAssignedEgressIPMap() (map[string]string, error)
- func (builder *EgressIPBuilder) Update() (*EgressIPBuilder, error)
- func (builder *EgressIPBuilder) WithEgressIPs(egressIPs []string) *EgressIPBuilder
- func (builder *EgressIPBuilder) WithNamespaceSelector(namespaceSelector metav1.LabelSelector) *EgressIPBuilder
- func (builder *EgressIPBuilder) WithPodSelector(podSelector metav1.LabelSelector) *EgressIPBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EgressIPBuilder ¶
type EgressIPBuilder struct { // EgressIP definition, used to create the EgressIP object. Definition *egressipv1.EgressIP // Created EgressIP object. Object *egressipv1.EgressIP // contains filtered or unexported fields }
EgressIPBuilder provides a struct for EgressIP object.
func NewEgressIPBuilder ¶
func NewEgressIPBuilder(apiClient *clients.Settings, name string) *EgressIPBuilder
NewEgressIPBuilder creates a new instance of EgressIP builder.
func Pull ¶
func Pull(apiClient *clients.Settings, name string) (*EgressIPBuilder, error)
Pull fetches existing egressIP from the cluster.
func (*EgressIPBuilder) Create ¶
func (builder *EgressIPBuilder) Create() (*EgressIPBuilder, error)
Create makes a egressIP in the cluster and stores the created object in struct.
func (*EgressIPBuilder) Delete ¶
func (builder *EgressIPBuilder) Delete() (*EgressIPBuilder, error)
Delete removes egressIP from a cluster.
func (*EgressIPBuilder) Exists ¶
func (builder *EgressIPBuilder) Exists() bool
Exists checks whether the given egressIP exists.
func (*EgressIPBuilder) Get ¶
func (builder *EgressIPBuilder) Get() (*egressipv1.EgressIP, error)
Get fetches the egressIP from the cluster.
func (*EgressIPBuilder) GetAssignedEgressIPMap ¶
func (builder *EgressIPBuilder) GetAssignedEgressIPMap() (map[string]string, error)
GetAssignedEgressIPMap fetches the next recommended or conditional update for the cluster.
func (*EgressIPBuilder) Update ¶
func (builder *EgressIPBuilder) Update() (*EgressIPBuilder, error)
Update updates egressIP object on cluster with content in the builder.
func (*EgressIPBuilder) WithEgressIPs ¶
func (builder *EgressIPBuilder) WithEgressIPs(egressIPs []string) *EgressIPBuilder
WithEgressIPs applies egressIPs to the EgressIP spec definition.
func (*EgressIPBuilder) WithNamespaceSelector ¶
func (builder *EgressIPBuilder) WithNamespaceSelector(namespaceSelector metav1.LabelSelector) *EgressIPBuilder
WithNamespaceSelector applies namespaceSelector to the EgressIP spec definition.
func (*EgressIPBuilder) WithPodSelector ¶
func (builder *EgressIPBuilder) WithPodSelector(podSelector metav1.LabelSelector) *EgressIPBuilder
WithPodSelector applies podSelector to the EgressIP spec definition.