lb

package
v0.0.0-...-b3f0fa4 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2018 Oracle and/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. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License 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

Constants

View Source
const (
	OciDomain = "lb"
)

OciDomain is unique domain string for all resources in lb package

Variables

This section is empty.

Functions

func NewBackendAdapter

func NewBackendAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewBackendAdapter creates a new adapter for backend resource

func NewBackendSetAdapter

func NewBackendSetAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewBackendSetAdapter creates a new adapter for backend set resource

func NewCertificateAdapter

func NewCertificateAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewCertificateAdapter creates a new adapter for certificate resource

func NewListenerAdapter

func NewListenerAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewListenerAdapter creates a new adapter for listener resource

func NewLoadBalancerAdapter

func NewLoadBalancerAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewLoadBalancerAdapter creates a new adapter for load balancer resource

Types

type BackendAdapter

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

BackendAdapter implements the adapter interface for backend resource

func (*BackendAdapter) Copy

Copy returns a copy of a backend object

func (*BackendAdapter) Create

func (a *BackendAdapter) Create(obj runtime.Object) (runtime.Object, error)

Create creates the backend resource in oci

func (*BackendAdapter) CreateObject

func (a *BackendAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the backend object

func (*BackendAdapter) Delete

func (a *BackendAdapter) Delete(obj runtime.Object) (runtime.Object, error)

Delete deletes the backend resource in oci

func (*BackendAdapter) DeleteObject

func (a *BackendAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error

DeleteObject deletes the backend object

func (*BackendAdapter) Dependents

func (a *BackendAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of backend dependents (objects that depend on the backend)

func (*BackendAdapter) DependsOn

func (a *BackendAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn

DependsOn returns a map of backend dependencies (objects that the backend depends on)

func (*BackendAdapter) DependsOnRefs

func (a *BackendAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

DependsOnRefs returns the objects that the backend depends on

func (*BackendAdapter) Equivalent

func (a *BackendAdapter) Equivalent(obj1, obj2 runtime.Object) bool

Equivalent checks if two backend objects are the same

func (*BackendAdapter) Get

Get retrieves the backend resource from oci

func (*BackendAdapter) GroupVersionWithResource

func (a *BackendAdapter) GroupVersionWithResource() schema.GroupVersionResource

GroupVersionWithResource returns the group version schema with the resource type

func (*BackendAdapter) Id

func (a *BackendAdapter) Id(obj runtime.Object) string

Id returns the unique resource id via the object type method (i.e the oci id)

func (*BackendAdapter) IsExpectedType

func (a *BackendAdapter) IsExpectedType(obj interface{}) bool

IsExpectedType ensures the resource type matches the adapter type

func (*BackendAdapter) IsResourceCompliant

func (a *BackendAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*BackendAdapter) IsResourceStatusChanged

func (a *BackendAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two vcn objects are the same

func (*BackendAdapter) Kind

func (a *BackendAdapter) Kind() string

Kind returns the resource kind string

func (*BackendAdapter) ObjectMeta

func (a *BackendAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta

ObjectMeta returns the object meta struct from the backend object

func (*BackendAdapter) ObjectType

func (a *BackendAdapter) ObjectType() runtime.Object

ObjectType returns the backend type for this adapter

func (*BackendAdapter) Resource

func (a *BackendAdapter) Resource() string

Resource returns the plural name of the resource type

func (*BackendAdapter) Update

func (a *BackendAdapter) Update(obj runtime.Object) (runtime.Object, error)

Update updates the backend resource in oci

func (*BackendAdapter) UpdateForResource

func (a *BackendAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the backend resource in the backend object

func (*BackendAdapter) UpdateObject

func (a *BackendAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

UpdateObject updates the backend object

type BackendSetAdapter

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

BackendSetAdapter implements the adapter interface for backend set resource

func (*BackendSetAdapter) Copy

Copy returns a copy of a backend set object

func (*BackendSetAdapter) Create

func (a *BackendSetAdapter) Create(obj runtime.Object) (runtime.Object, error)

Create creates the backend set resource in oci

func (*BackendSetAdapter) CreateObject

func (a *BackendSetAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the backend set object

func (*BackendSetAdapter) Delete

func (a *BackendSetAdapter) Delete(obj runtime.Object) (runtime.Object, error)

Delete deletes the backend set resource in oci

func (*BackendSetAdapter) DeleteObject

func (a *BackendSetAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error

DeleteObject deletes the backend set object

func (*BackendSetAdapter) Dependents

func (a *BackendSetAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of backend set dependents (objects that depend on the backend set)

func (*BackendSetAdapter) DependsOn

func (a *BackendSetAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn

DependsOn returns a map of backend set dependencies (objects that the backend set depends on)

func (*BackendSetAdapter) DependsOnRefs

func (a *BackendSetAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

DependsOnRefs returns the objects that the backend set depends on

func (*BackendSetAdapter) Equivalent

func (a *BackendSetAdapter) Equivalent(obj1, obj2 runtime.Object) bool

Equivalent checks if two backend set objects are the same

func (*BackendSetAdapter) Get

Get retrieves the backend set resource from oci

func (*BackendSetAdapter) GroupVersionWithResource

func (a *BackendSetAdapter) GroupVersionWithResource() schema.GroupVersionResource

GroupVersionWithResource returns the group version schema with the resource type

func (*BackendSetAdapter) Id

Id returns the unique resource id via the object type method (i.e the oci id)

func (*BackendSetAdapter) IsExpectedType

func (a *BackendSetAdapter) IsExpectedType(obj interface{}) bool

IsExpectedType ensures the resource type matches the adapter type

func (*BackendSetAdapter) IsResourceCompliant

func (a *BackendSetAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*BackendSetAdapter) IsResourceStatusChanged

func (a *BackendSetAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two objects are the same

func (*BackendSetAdapter) Kind

func (a *BackendSetAdapter) Kind() string

Kind returns the resource kind string

func (*BackendSetAdapter) ObjectMeta

func (a *BackendSetAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta

ObjectMeta returns the object meta struct from the backend set object

func (*BackendSetAdapter) ObjectType

func (a *BackendSetAdapter) ObjectType() runtime.Object

ObjectType returns the backend set type for this adapter

func (*BackendSetAdapter) Resource

func (a *BackendSetAdapter) Resource() string

Resource returns the plural name of the resource type

func (*BackendSetAdapter) Update

func (a *BackendSetAdapter) Update(obj runtime.Object) (runtime.Object, error)

Update updates the backend set resource in oci

func (*BackendSetAdapter) UpdateForResource

func (a *BackendSetAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the backend set resource in the backend set object

func (*BackendSetAdapter) UpdateObject

func (a *BackendSetAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

UpdateObject updates the backend set object

type CertificateAdapter

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

CertificateAdapter implements the adapter interface for certificate resource

func (*CertificateAdapter) Copy

Copy returns a copy of a certificate object

func (*CertificateAdapter) Create

Create creates the certificate resource in oci

func (*CertificateAdapter) CreateObject

func (a *CertificateAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the certificate object

func (*CertificateAdapter) Delete

Delete deletes the certificate resource in oci

func (*CertificateAdapter) DeleteObject

func (a *CertificateAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error

DeleteObject deletes the certificate object

func (*CertificateAdapter) Dependents

func (a *CertificateAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of certificate dependents (objects that depend on the certificate)

func (*CertificateAdapter) DependsOn

DependsOn returns a map of certificate dependencies (objects that the certificate depends on)

func (*CertificateAdapter) DependsOnRefs

func (a *CertificateAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

DependsOnRefs returns the objects that the certificate depends on

func (*CertificateAdapter) Equivalent

func (a *CertificateAdapter) Equivalent(obj1, obj2 runtime.Object) bool

Equivalent checks if two certificate objects are the same

func (*CertificateAdapter) Get

Get retrieves the certificate resource from oci

func (*CertificateAdapter) GroupVersionWithResource

func (a *CertificateAdapter) GroupVersionWithResource() schema.GroupVersionResource

GroupVersionWithResource returns the group version schema with the resource type

func (*CertificateAdapter) Id

Id returns the unique resource id via the object type method (i.e the oci id)

func (*CertificateAdapter) IsExpectedType

func (a *CertificateAdapter) IsExpectedType(obj interface{}) bool

IsExpectedType ensures the resource type matches the adapter type

func (*CertificateAdapter) IsResourceCompliant

func (a *CertificateAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*CertificateAdapter) IsResourceStatusChanged

func (a *CertificateAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two objects are the same

func (*CertificateAdapter) Kind

func (a *CertificateAdapter) Kind() string

Kind returns the resource kind string

func (*CertificateAdapter) ObjectMeta

func (a *CertificateAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta

ObjectMeta returns the object meta struct from the certificate object

func (*CertificateAdapter) ObjectType

func (a *CertificateAdapter) ObjectType() runtime.Object

ObjectType returns the certificate type for this adapter

func (*CertificateAdapter) Resource

func (a *CertificateAdapter) Resource() string

Resource returns the plural name of the resource type

func (*CertificateAdapter) Update

Update updates the certificate resource in oci

func (*CertificateAdapter) UpdateForResource

func (a *CertificateAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the certificate resource in the certificate object

func (*CertificateAdapter) UpdateObject

func (a *CertificateAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

UpdateObject updates the certificate object

type ListenerAdapter

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

ListenerAdapter implements the adapter interface for listener resource

func (*ListenerAdapter) Copy

Copy returns a copy of a listener object

func (*ListenerAdapter) Create

func (a *ListenerAdapter) Create(obj runtime.Object) (runtime.Object, error)

Create creates the listener resource in oci

func (*ListenerAdapter) CreateObject

func (a *ListenerAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the listener object

func (*ListenerAdapter) Delete

func (a *ListenerAdapter) Delete(obj runtime.Object) (runtime.Object, error)

Delete deletes the listener resource in oci

func (*ListenerAdapter) DeleteObject

func (a *ListenerAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error

DeleteObject deletes the listener object

func (*ListenerAdapter) Dependents

func (a *ListenerAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of listener dependents (objects that depend on the listener)

func (*ListenerAdapter) DependsOn

func (a *ListenerAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn

DependsOn returns a map of listener dependencies (objects that the listener depends on)

func (*ListenerAdapter) DependsOnRefs

func (a *ListenerAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

DependsOnRefs returns the objects that the listener depends on

func (*ListenerAdapter) Equivalent

func (a *ListenerAdapter) Equivalent(obj1, obj2 runtime.Object) bool

Equivalent checks if two listener objects are the same

func (*ListenerAdapter) Get

Get retrieves the listener resource from oci

func (*ListenerAdapter) GroupVersionWithResource

func (a *ListenerAdapter) GroupVersionWithResource() schema.GroupVersionResource

GroupVersionWithResource returns the group version schema with the resource type

func (*ListenerAdapter) Id

func (a *ListenerAdapter) Id(obj runtime.Object) string

Id returns the unique resource id via the object type method (i.e the oci id)

func (*ListenerAdapter) IsExpectedType

func (a *ListenerAdapter) IsExpectedType(obj interface{}) bool

IsExpectedType ensures the resource type matches the adapter type

func (*ListenerAdapter) IsResourceCompliant

func (a *ListenerAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*ListenerAdapter) IsResourceStatusChanged

func (a *ListenerAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two vcn objects are the same

func (*ListenerAdapter) Kind

func (a *ListenerAdapter) Kind() string

Kind returns the resource kind string

func (*ListenerAdapter) ObjectMeta

func (a *ListenerAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta

ObjectMeta returns the object meta struct from the listener object

func (*ListenerAdapter) ObjectType

func (a *ListenerAdapter) ObjectType() runtime.Object

ObjectType returns the listener type for this adapter

func (*ListenerAdapter) Resource

func (a *ListenerAdapter) Resource() string

Resource returns the plural name of the resource type

func (*ListenerAdapter) Update

func (a *ListenerAdapter) Update(obj runtime.Object) (runtime.Object, error)

Update updates the listener resource in oci

func (*ListenerAdapter) UpdateForResource

func (a *ListenerAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the listener resource in the listener object

func (*ListenerAdapter) UpdateObject

func (a *ListenerAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

UpdateObject updates the listener object

type LoadBalancerAdapter

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

LoadBalancerAdapter implements the adapter interface for load balancer resource

func (*LoadBalancerAdapter) Copy

Copy returns a copy of a load balancer object

func (*LoadBalancerAdapter) Create

Create creates the load balancer resource in oci

func (*LoadBalancerAdapter) CreateObject

func (a *LoadBalancerAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the load balancer object

func (*LoadBalancerAdapter) Delete

Delete deletes the load balancer resource in oci

func (*LoadBalancerAdapter) DeleteObject

func (a *LoadBalancerAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error

DeleteObject deletes the load balancer object

func (*LoadBalancerAdapter) Dependents

func (a *LoadBalancerAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of load balancer dependents (objects that depend on the load balancer)

func (*LoadBalancerAdapter) DependsOn

DependsOn returns a map of load balancer dependencies (objects that the load balancer depends on)

func (*LoadBalancerAdapter) DependsOnRefs

func (a *LoadBalancerAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

DependsOnRefs returns the objects that the load balancer depends on

func (*LoadBalancerAdapter) Equivalent

func (a *LoadBalancerAdapter) Equivalent(obj1, obj2 runtime.Object) bool

Equivalent checks if two load balancer objects are the same

func (*LoadBalancerAdapter) Get

Get retrieves the load balancer resource from oci

func (*LoadBalancerAdapter) GroupVersionWithResource

func (a *LoadBalancerAdapter) GroupVersionWithResource() schema.GroupVersionResource

GroupVersionWithResource returns the group version schema with the resource type

func (*LoadBalancerAdapter) Id

Id returns the unique resource id via the object type method (i.e the oci id)

func (*LoadBalancerAdapter) IsExpectedType

func (a *LoadBalancerAdapter) IsExpectedType(obj interface{}) bool

IsExpectedType ensures the resource type matches the adapter type

func (*LoadBalancerAdapter) IsResourceCompliant

func (a *LoadBalancerAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*LoadBalancerAdapter) IsResourceStatusChanged

func (a *LoadBalancerAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two vcn objects are the same

func (*LoadBalancerAdapter) Kind

func (a *LoadBalancerAdapter) Kind() string

Kind returns the resource kind string

func (*LoadBalancerAdapter) ObjectMeta

func (a *LoadBalancerAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta

ObjectMeta returns the object meta struct from the load balancer object

func (*LoadBalancerAdapter) ObjectType

func (a *LoadBalancerAdapter) ObjectType() runtime.Object

ObjectType returns the load balancer type for this adapter

func (*LoadBalancerAdapter) Resource

func (a *LoadBalancerAdapter) Resource() string

Resource returns the plural name of the resource type

func (*LoadBalancerAdapter) Update

Update updates the load balancer resource in oci

func (*LoadBalancerAdapter) UpdateForResource

func (a *LoadBalancerAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the load balancer resource in the load balancer object

func (*LoadBalancerAdapter) UpdateObject

func (a *LoadBalancerAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

UpdateObject updates the load balancer object

Jump to

Keyboard shortcuts

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