loadbalancer

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: 22 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.

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 (
	CloudDomain = "cloudloadbalancer"
)

Variables

This section is empty.

Functions

func CreateOrUpdateBackend

func CreateOrUpdateBackend(c clientset.Interface,
	controllerRef *metav1.OwnerReference,
	lb *cloudv1alpha1.LoadBalancer,
	instanceName string,
	weight int) (*v1alpha1.Backend, bool, error)

CreateOrUpdateBackend reconciles the backend resource

func CreateOrUpdateBackendSet

func CreateOrUpdateBackendSet(c clientset.Interface,
	controllerRef *metav1.OwnerReference,
	lb *cloudv1alpha1.LoadBalancer) (*v1alpha1.BackendSet, bool, error)

CreateOrUpdateIBackendSet reconciles the backendset resource

func CreateOrUpdateCertificate

func CreateOrUpdateCertificate(c clientset.Interface,
	controllerRef *metav1.OwnerReference,
	lb *cloudv1alpha1.LoadBalancer,
	listener *cloudv1alpha1.Listener) (*v1alpha1.Certificate, bool, error)

CreateOrUpdateCertificate reconciles the certificate resource

func CreateOrUpdateListener

func CreateOrUpdateListener(c clientset.Interface,
	controllerRef *metav1.OwnerReference,
	lb *cloudv1alpha1.LoadBalancer,
	listener *cloudv1alpha1.Listener) (*v1alpha1.Listener, bool, error)

CreateOrUpdateListener reconciles the listener resource

func CreateOrUpdateLoadBalancer

func CreateOrUpdateLoadBalancer(c clientset.Interface,
	controllerRef *metav1.OwnerReference,
	lb *cloudv1alpha1.LoadBalancer,
	subnets []string) (*v1alpha1.LoadBalancer, bool, error)

CreateOrUpdateLoadBalancer reconciles the loadbalancer resource

func DeleteBackend

func DeleteBackend(c clientset.Interface, namespace string, name string) (*v1alpha1.Backend, error)

DeleteBackend deletes the backend resource

func DeleteBackendSet

DeleteBackendSet deletes the backendset resource

func DeleteCertificate

DeleteCertificate deletes the certificate resource

func DeleteListener

func DeleteListener(c clientset.Interface, namespace string, name string) (*v1alpha1.Listener, error)

DeleteListener deletes the listener resource

func DeleteLoadBalancer

DeleteLoadBalancer deletes the loadBalancer resource

func NewLoadBalancerAdapter

func NewLoadBalancerAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter

factory method

Types

type LoadBalancerAdapter

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

func (*LoadBalancerAdapter) CallbackForResource

callback for resource

func (*LoadBalancerAdapter) Delete

delete loadBalancer cloud event handler

func (*LoadBalancerAdapter) Equivalent

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

equivalent

func (*LoadBalancerAdapter) GroupVersionWithResource

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

group version with resource

func (*LoadBalancerAdapter) Kind

func (a *LoadBalancerAdapter) Kind() string

kind

func (*LoadBalancerAdapter) ObjectMeta

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

object meta

func (*LoadBalancerAdapter) Reconcile

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

reconcile - handles create and updates

func (*LoadBalancerAdapter) Resource

func (a *LoadBalancerAdapter) Resource() string

resource

func (*LoadBalancerAdapter) SetLister

func (a *LoadBalancerAdapter) SetLister(lister cache.GenericLister)

set lister

func (*LoadBalancerAdapter) SetQueue

set queue

func (*LoadBalancerAdapter) Subscriptions

func (a *LoadBalancerAdapter) Subscriptions() []schema.GroupVersionResource

subscriptions

func (*LoadBalancerAdapter) Update

update loadBalancer cloud event handler

Jump to

Keyboard shortcuts

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