egressip

package
v0.0.0-...-0f9dd43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL