ipammachinery

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 22 Imported by: 7

Documentation

Index

Constants

View Source
const (

	// IPAM is a F5 Custom Resource Kind.
	F5ipam     = "IPAM"
	F5IPAMCtlr = "F5 IPAM Controller"

	CRDPlural        string = "ipams"
	CRDGroup         string = "fic.f5.com"
	CRDVersion       string = "v1"
	FullCRDName      string = CRDPlural + "." + CRDGroup
	HostnamePattern  string = "^(([a-zA-Z0-9\\*]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$"
	IPAddressPattern string = "" /* 768-byte string literal not displayed */
)
View Source
const MAX_RETRIES = 10

Variables

This section is empty.

Functions

func NewRESTClient

func NewRESTClient(cfg *rest.Config) (rest.Interface, error)

func RegisterCRD

func RegisterCRD(clientset extClient.Interface) error

RegisterCRD creates schema of IPAM and registers it with Kubernetes/Openshift

Types

type IPAMClient

type IPAMClient struct {
	// contains filtered or unexported fields
}

CRManager defines the structure of Custom Resource Manager

func NewFakeIPAMClient added in v0.1.5

func NewFakeIPAMClient(
	kubeCRClient versioned.Interface,
	kubeClient kubernetes.Interface,
	restClient rest.Interface,
) *IPAMClient

func NewIPAMClient

func NewIPAMClient(params Params) *IPAMClient

NewIPAM creates a new IPAMClient Instance.

func (*IPAMClient) Create

func (ipamCli *IPAMClient) Create(obj *v1.IPAM) (*v1.IPAM, error)

func (*IPAMClient) Delete

func (ipamCli *IPAMClient) Delete(namespace, name string, options metaV1.DeleteOptions) error

func (*IPAMClient) Get

func (ipamCli *IPAMClient) Get(namespace, name string) (*v1.IPAM, error)

func (*IPAMClient) List added in v0.1.3

func (ipamCli *IPAMClient) List(namespace string) ([]v1.IPAM, error)

func (*IPAMClient) Patch

func (ipamCli *IPAMClient) Patch(obj *v1.IPAM) (*v1.IPAM, error)

func (*IPAMClient) Start

func (ipamCli *IPAMClient) Start()

Start the Custom Resource Manager

func (*IPAMClient) Stop

func (ipamCli *IPAMClient) Stop()

func (*IPAMClient) Update

func (ipamCli *IPAMClient) Update(obj *v1.IPAM) (res *v1.IPAM, err error)

func (*IPAMClient) UpdateStatus

func (ipamCli *IPAMClient) UpdateStatus(obj *v1.IPAM) (res *v1.IPAM, err error)

type IPAMInformer

type IPAMInformer struct {
	// contains filtered or unexported fields
}

CRInformer defines the structure of Custom Resource Informer

type Params

type Params struct {
	Config        *rest.Config
	EventHandlers *cache.ResourceEventHandlerFuncs
	Namespaces    []string
}

Params defines parameters

Jump to

Keyboard shortcuts

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