v1alpha1

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: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=ocilb.oracle.com

Index

Constants

View Source
const (
	BackendKind           = "Backend"
	BackendResourcePlural = "backends"
	BackendControllerName = "backends"
)

Backend names

View Source
const (
	BackendSetKind           = "BackendSet"
	BackendSetResourcePlural = "backendsets"
	BackendSetControllerName = "backendsets"
)

BackendSet names

View Source
const (
	CertificateKind           = "Certificate"
	CertificateResourcePlural = "certificates"
	CertificateControllerName = "certificates"
)

Certificate names

View Source
const (
	ListenerKind           = "Listener"
	ListenerResourcePlural = "listeners"
	ListenerControllerName = "listeners"
)

Listener names

View Source
const (
	LoadBalancerKind           = "LoadBalancer"
	LoadBalancerResourcePlural = "loadbalancers"
	LoadBalancerControllerName = "loadbalancers"
)

LoadBalancer names

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Register scheme and api resources

View Source
var BackendSetValidation = apiextv1beta1.CustomResourceValidation{
	OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{
		Properties: map[string]apiextv1beta1.JSONSchemaProps{
			"metadata": common.MetaDataValidation,
			"spec": {
				Required: []string{"loadBalancerRef"},
				Properties: map[string]apiextv1beta1.JSONSchemaProps{
					"loadBalancerRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"policy": {
						Type:    common.ValidationTypeString,
						Pattern: "^ROUND_ROBIN$|^LEAST_CONNECTIONS$|^IP_HASH$",
					},
					"healthChecker": {
						Properties: map[string]apiextv1beta1.JSONSchemaProps{
							"intervalInMillis": {
								Type:    common.ValidationTypeInteger,
								Minimum: &oneSecMillis,

								Maximum: &oneDayMillis,
							},
							"port": {
								Type:    common.ValidationTypeInteger,
								Minimum: &minTCPPort,
								Maximum: &maxTCPPort,
							},
							"protocol": {
								Type:    common.ValidationTypeString,
								Pattern: common.LoadBalancerProtocolRegex,
							},
							"responseBodyRegex": {
								Type:    common.ValidationTypeString,
								Pattern: common.AnyStringValidationRegex,
							},
							"retries": {
								Type: common.ValidationTypeInteger,
							},
							"returnCode": {
								Type:    common.ValidationTypeInteger,
								Minimum: &minReturnCode,
								Maximum: &maxReturnCode,
							},
							"timeoutInMillis": {
								Type:    common.ValidationTypeInteger,
								Minimum: &oneSecMillis,

								Maximum: &oneDayMillis,
							},
							"urlPath": {
								Type:    common.ValidationTypeString,
								Pattern: "^\\/$|^\\/[a-zA-Z0-9]*[\\._/a-zA-Z0-9\\-\\&\\?\\=]*$",
							},
						},
					},
					"sslConfiguration": {
						Properties: map[string]apiextv1beta1.JSONSchemaProps{
							"certificateName": {
								Type:    common.ValidationTypeString,
								Pattern: common.HostnameValidationRegex,
							},
							"verifyDepth": {
								Type:    common.ValidationTypeInteger,
								Minimum: &minDepth,

								Maximum: &maxDepth,
							},
						},
					},
					"sessionPersistenceConfiguration": {
						Properties: map[string]apiextv1beta1.JSONSchemaProps{
							"cookieName": {
								Type:    common.ValidationTypeString,
								Pattern: common.HostnameValidationRegex,
							},
							"disableFallback": {
								Type: common.ValidationTypeBoolean,
							},
						},
					},
				},
			},
		},
	},
}

BackendSetValidation describes the backend set validation schema

View Source
var BackendValidation = apiextv1beta1.CustomResourceValidation{
	OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{
		Properties: map[string]apiextv1beta1.JSONSchemaProps{
			"metadata": common.MetaDataValidation,
			"spec": {
				Required: []string{"backendSetRef", "instanceRef", "loadBalancerRef", "port", "weight"},
				Properties: map[string]apiextv1beta1.JSONSchemaProps{
					"backendSetRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"instanceRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"loadBalancerRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},

					"ipAddress": {
						Type:    common.ValidationTypeString,
						Pattern: common.Ipv4ValidationRegex,
					},
					"port": {
						Type:    common.ValidationTypeInteger,
						Minimum: &minTCPPort,
						Maximum: &maxTCPPort,
					},
					"weight": {
						Type:    common.ValidationTypeInteger,
						Minimum: &minWeight,
						Maximum: &maxWeight,
					},
					"backup": {
						Type: common.ValidationTypeBoolean,
					},
					"drain": {
						Type: common.ValidationTypeBoolean,
					},
					"online": {
						Type: common.ValidationTypeBoolean,
					},
				},
			},
		},
	},
}

BackendValidation describes the backend validation schema

View Source
var CertificateValidation = apiextv1beta1.CustomResourceValidation{
	OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{
		Properties: map[string]apiextv1beta1.JSONSchemaProps{
			"metadata": common.MetaDataValidation,
			"spec": {
				Required: []string{"loadBalancerRef", "publicCertificate", "privateKey"},
				Properties: map[string]apiextv1beta1.JSONSchemaProps{
					"loadBalancerRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},

					"publicCertificate": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"privateKey": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"caCertificate": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"passphrase": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
				},
			},
		},
	},
}

CertificateValidation describes the certificate validation schema

View Source
var ListenerValidation = apiextv1beta1.CustomResourceValidation{
	OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{
		Properties: map[string]apiextv1beta1.JSONSchemaProps{
			"metadata": common.MetaDataValidation,
			"spec": {
				Required: []string{"loadBalancerRef", "defaultBackendSetName", "port", "protocol"},
				Properties: map[string]apiextv1beta1.JSONSchemaProps{
					"certificateRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.NoOrAnyStringValidationRegex,
					},
					"loadBalancerRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"defaultBackendSetName": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"port": {
						Type:    common.ValidationTypeInteger,
						Minimum: &minTCPPort,
						Maximum: &maxTCPPort,
					},
					"protocol": {
						Type:    common.ValidationTypeString,
						Pattern: common.LoadBalancerProtocolRegex,
					},
				},
			},
		},
	},
}

ListenerValidation describes the listener validation schema

View Source
var LoadBalancerValidation = apiextv1beta1.CustomResourceValidation{
	OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{
		Properties: map[string]apiextv1beta1.JSONSchemaProps{
			"metadata": common.MetaDataValidation,
			"spec": {
				Required: []string{"compartmentRef", "subnetRefs"},
				Properties: map[string]apiextv1beta1.JSONSchemaProps{
					"compartmentRef": {
						Type:    common.ValidationTypeString,
						Pattern: common.AnyStringValidationRegex,
					},
					"subnetRefs": {
						Type: common.ValidationTypeArray,
					},

					"isPrivate": {
						Type: common.ValidationTypeBoolean,
					},
					"shapeName": {
						Type:    common.ValidationTypeString,
						Pattern: "^100Mbps$|^400Mbps$|^8000Mbps$",
					},
				},
			},
		},
	},
}

LoadBalancerValidation describes the load balancer validation schema

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: group.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is the group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type Backend

type Backend struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              BackendSpec   `json:"spec"`
	Status            BackendStatus `json:"status,omitempty"`
}

Backend describes a backend

func (*Backend) AddDependent

func (s *Backend) AddDependent(kind string, obj runtime.Object) error

AddDependent adds a backend dependent

func (*Backend) DeepCopy

func (in *Backend) DeepCopy() *Backend

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Backend) DeepCopyObject

func (in *Backend) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Backend) GetGroupVersionResource

func (s *Backend) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the group version of the backend type

func (*Backend) GetResourceID

func (s *Backend) GetResourceID() string

GetResourceID returns the oci id of the backend

func (*Backend) GetResourcePlural

func (s *Backend) GetResourcePlural() string

GetResourcePlural returns the plural name of the backend type

func (*Backend) GetResourceState

func (s *Backend) GetResourceState() common.ResourceState

GetResourceState returns the current state of the iresource

func (*Backend) IsDependentRegistered

func (s *Backend) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)

IsDependentRegistered returns true if the backend dependent is registered

func (*Backend) IsResource

func (s *Backend) IsResource() bool

IsResource returns true if there is an oci id, otherwise false

func (*Backend) RemoveDependent

func (s *Backend) RemoveDependent(kind string, obj runtime.Object) error

RemoveDependent removes a backend dependent

func (*Backend) SetResource

func (s *Backend) SetResource(r *ocilb.Backend) *Backend

SetResource sets the resource in backend status

type BackendList

type BackendList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Backend `json:"items"`
}

BackendList is a list of Backend items

func (*BackendList) DeepCopy

func (in *BackendList) DeepCopy() *BackendList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendList.

func (*BackendList) DeepCopyInto

func (in *BackendList) DeepCopyInto(out *BackendList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BackendList) DeepCopyObject

func (in *BackendList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BackendResource

type BackendResource struct {
	*ocilb.Backend
}

BackendResource describes a backend resource from oci

func (*BackendResource) DeepCopy

func (in *BackendResource) DeepCopy() (out *BackendResource)

DeepCopy the backed oci resource

func (*BackendResource) DeepCopyInto

func (in *BackendResource) DeepCopyInto(out *BackendResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackendSet

type BackendSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              BackendSetSpec   `json:"spec"`
	Status            BackendSetStatus `json:"status,omitempty"`
}

BackendSet describes a backend set

func (*BackendSet) AddDependent

func (s *BackendSet) AddDependent(kind string, obj runtime.Object) error

AddDependent adds a backend set dependent

func (*BackendSet) DeepCopy

func (in *BackendSet) DeepCopy() *BackendSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendSet.

func (*BackendSet) DeepCopyInto

func (in *BackendSet) DeepCopyInto(out *BackendSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BackendSet) DeepCopyObject

func (in *BackendSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*BackendSet) GetGroupVersionResource

func (s *BackendSet) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the group name of the backend set type

func (*BackendSet) GetResourceID

func (s *BackendSet) GetResourceID() string

GetResourceID returns the oci id of the backend set

func (*BackendSet) GetResourcePlural

func (s *BackendSet) GetResourcePlural() string

GetResourcePlural returns the plural name of the backend set type

func (*BackendSet) GetResourceState

func (s *BackendSet) GetResourceState() common.ResourceState

GetResourceState returns the current state of the iresource

func (*BackendSet) IsDependentRegistered

func (s *BackendSet) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)

IsDependentRegistered returns true if the backend set dependent is registered

func (*BackendSet) IsResource

func (s *BackendSet) IsResource() bool

IsResource returns true if there is an oci id, otherwise false

func (*BackendSet) RemoveDependent

func (s *BackendSet) RemoveDependent(kind string, obj runtime.Object) error

RemoveDependent removes a backend set dependent

func (*BackendSet) SetResource

func (s *BackendSet) SetResource(r *ocilb.BackendSet) *BackendSet

SetResource sets the resource in the backend set status

type BackendSetList

type BackendSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []BackendSet `json:"items"`
}

BackendSetList is a list of BackendSet items

func (*BackendSetList) DeepCopy

func (in *BackendSetList) DeepCopy() *BackendSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendSetList.

func (*BackendSetList) DeepCopyInto

func (in *BackendSetList) DeepCopyInto(out *BackendSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BackendSetList) DeepCopyObject

func (in *BackendSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BackendSetResource

type BackendSetResource struct {
	*ocilb.BackendSet
}

BackendSetResource describes the backend set resource from oci

func (*BackendSetResource) DeepCopy

func (in *BackendSetResource) DeepCopy() (out *BackendSetResource)

DeepCopy the backend set oci resource

func (*BackendSetResource) DeepCopyInto

func (in *BackendSetResource) DeepCopyInto(out *BackendSetResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackendSetSpec

type BackendSetSpec struct {
	LoadBalancerRef string `json:"loadBalancerRef"`

	HealthChecker *HealthChecker `json:"healthChecker"`

	Policy string `json:"policy" url:"-"` // FIXME: supposedly has default: "ROUND_ROBIN" but then raises error when null. For valid values see ListPolicies()

	SSLConfig                *SSLConfiguration                `json:"sslConfiguration,omitempty" url:"-"` // TODO: acc test, waiting on CreateCertificate() tests
	SessionPersistenceConfig *SessionPersistenceConfiguration `json:"sessionPersistenceConfiguration,omitempty" url:"-"`

	common.Dependency
}

BackendSetSpec describes the backend set spec

func (*BackendSetSpec) DeepCopy

func (in *BackendSetSpec) DeepCopy() *BackendSetSpec

DeepCopy the backend set spec

func (*BackendSetSpec) DeepCopyInto

func (in *BackendSetSpec) DeepCopyInto(out *BackendSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackendSetStatus

type BackendSetStatus struct {
	common.ResourceStatus
	LoadBalancerId *string

	WorkRequestId     *string                              `json:"workRequestId,omitempty"`
	WorkRequestStatus *ocilb.WorkRequestLifecycleStateEnum `json:"workRequestStatus,omitempty"`

	Resource *BackendSetResource `json:"resource,omitempty"`
}

BackendSetStatus describes the backend set status

func (*BackendSetStatus) DeepCopy

func (in *BackendSetStatus) DeepCopy() *BackendSetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendSetStatus.

func (*BackendSetStatus) DeepCopyInto

func (in *BackendSetStatus) DeepCopyInto(out *BackendSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackendSpec

type BackendSpec struct {
	BackendSetRef   string `json:"backendSetRef"`
	InstanceRef     string `json:"instanceRef"`
	LoadBalancerRef string `json:"loadBalancerRef"`

	Backup    bool   `json:"backup"`
	Drain     bool   `json:"drain"`
	IPAddress string `json:"ipAddress"`
	Offline   bool   `json:"offline"`
	Port      int    `json:"port"`
	Weight    int    `json:"weight"`

	common.Dependency
}

BackendSpec describes a backend spec

func (*BackendSpec) DeepCopy

func (in *BackendSpec) DeepCopy() *BackendSpec

DeepCopy the backend spec

func (*BackendSpec) DeepCopyInto

func (in *BackendSpec) DeepCopyInto(out *BackendSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackendStatus

type BackendStatus struct {
	common.ResourceStatus
	LoadBalancerId *string

	WorkRequestId     *string                              `json:"workRequestId,omitempty"`
	WorkRequestStatus *ocilb.WorkRequestLifecycleStateEnum `json:"workRequestStatus,omitempty"`

	Resource *BackendResource `json:"resource,omitempty"`
}

BackendStatus describes a backend status

func (*BackendStatus) DeepCopy

func (in *BackendStatus) DeepCopy() *BackendStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendStatus.

func (*BackendStatus) DeepCopyInto

func (in *BackendStatus) DeepCopyInto(out *BackendStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Certificate

type Certificate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              CertificateSpec   `json:"spec"`
	Status            CertificateStatus `json:"status,omitempty"`
}

Certificate describes a certificate

func (*Certificate) AddDependent

func (s *Certificate) AddDependent(kind string, obj runtime.Object) error

AddDependent adds a certificate dependent

func (*Certificate) DeepCopy

func (in *Certificate) DeepCopy() *Certificate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Certificate.

func (*Certificate) DeepCopyInto

func (in *Certificate) DeepCopyInto(out *Certificate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Certificate) DeepCopyObject

func (in *Certificate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Certificate) GetGroupVersionResource

func (s *Certificate) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the group version of the certificate type

func (*Certificate) GetResourceID

func (s *Certificate) GetResourceID() string

GetResourceID returns the oci id of the certificate

func (*Certificate) GetResourcePlural

func (s *Certificate) GetResourcePlural() string

GetResourcePlural returns the plural name of the certificate type

func (*Certificate) GetResourceState

func (s *Certificate) GetResourceState() common.ResourceState

GetResourceState returns the current state of the iresource

func (*Certificate) IsDependentRegistered

func (s *Certificate) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)

IsDependentRegistered returns true if the certificate dependent is registered

func (*Certificate) IsResource

func (s *Certificate) IsResource() bool

IsResource returns true if there is an oci id, otherwise false

func (*Certificate) RemoveDependent

func (s *Certificate) RemoveDependent(kind string, obj runtime.Object) error

RemoveDependent removes a certificate dependent

func (*Certificate) SetResource

func (s *Certificate) SetResource(r *ocilb.Certificate) *Certificate

SetResource sets the resource in the certificate status

type CertificateList

type CertificateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Certificate `json:"items"`
}

CertificateList is a list of Certificate items

func (*CertificateList) DeepCopy

func (in *CertificateList) DeepCopy() *CertificateList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateList.

func (*CertificateList) DeepCopyInto

func (in *CertificateList) DeepCopyInto(out *CertificateList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CertificateList) DeepCopyObject

func (in *CertificateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CertificateResource

type CertificateResource struct {
	*ocilb.Certificate
}

CertificateResource describes a certificate resource from oci

func (*CertificateResource) DeepCopy

func (in *CertificateResource) DeepCopy() (out *CertificateResource)

DeepCopy the certificate oci resource

func (*CertificateResource) DeepCopyInto

func (in *CertificateResource) DeepCopyInto(out *CertificateResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CertificateSpec

type CertificateSpec struct {
	LoadBalancerRef string `json:"loadBalancerRef"`

	PublicCertificate string `header:"-" url:"-" json:"publicCertificate"`
	PrivateKey        string `header:"-" url:"-" json:"privateKey,omitempty"` // Only for create

	// Optional
	CACertificate string `header:"-" url:"-" json:"caCertificate,omitempty"`
	Passphrase    string `header:"-" url:"-" json:"passphrase,omitempty"` // Only for create

	common.Dependency
}

CertificateSpec describes a certificate spec

func (*CertificateSpec) DeepCopy

func (in *CertificateSpec) DeepCopy() *CertificateSpec

DeepCopy the certificate spec

func (*CertificateSpec) DeepCopyInto

func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CertificateStatus

type CertificateStatus struct {
	common.ResourceStatus
	LoadBalancerId *string

	WorkRequestId     *string                              `json:"workRequestId,omitempty"`
	WorkRequestStatus *ocilb.WorkRequestLifecycleStateEnum `json:"workRequestStatus,omitempty"`

	Resource *CertificateResource `json:"resource,omitempty"`
}

CertificateStatus describes a certificate status

func (*CertificateStatus) DeepCopy

func (in *CertificateStatus) DeepCopy() *CertificateStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateStatus.

func (*CertificateStatus) DeepCopyInto

func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HealthChecker

type HealthChecker struct {
	Protocol string `url:"-" header:"-" json:"protocol"` // TODO: add validation in provider, must be in {"HTTP","TCP"}
	URLPath  string `url:"-" header:"-" json:"urlPath"`

	// Optional
	IntervalInMillis  int    `url:"-" header:"-" json:"intervalInMillis,omitempty"`  // Default: 10000
	Port              int    `url:"-" header:"-" json:"port,omitempty"`              // Default: 0
	ResponseBodyRegex string `url:"-" header:"-" json:"responseBodyRegex,omitempty"` // Default: ".*",
	Retries           int    `url:"-" header:"-" json:"retries,omitempty"`           // Default: 3
	ReturnCode        int    `url:"-" header:"-" json:"returnCode,omitempty"`        // Default: 200
	TimeoutInMillis   int    `url:"-" header:"-" json:"timeoutInMillis,omitempty"`   // Default: 3000,
}

HealthChecker describes health checker of the backend set

func (*HealthChecker) DeepCopy

func (in *HealthChecker) DeepCopy() *HealthChecker

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthChecker.

func (*HealthChecker) DeepCopyInto

func (in *HealthChecker) DeepCopyInto(out *HealthChecker)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Listener

type Listener struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ListenerSpec   `json:"spec"`
	Status            ListenerStatus `json:"status,omitempty"`
}

Listener describes a listener

func (*Listener) AddDependent

func (s *Listener) AddDependent(kind string, obj runtime.Object) error

AddDependent adds a listener dependent

func (*Listener) DeepCopy

func (in *Listener) DeepCopy() *Listener

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.

func (*Listener) DeepCopyInto

func (in *Listener) DeepCopyInto(out *Listener)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Listener) DeepCopyObject

func (in *Listener) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Listener) GetGroupVersionResource

func (s *Listener) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the group version of the listener type

func (*Listener) GetResourceID

func (s *Listener) GetResourceID() string

GetResourceID returns the oci id of the listener

func (*Listener) GetResourcePlural

func (s *Listener) GetResourcePlural() string

GetResourcePlural returns the plural name of the listener type

func (*Listener) GetResourceState

func (s *Listener) GetResourceState() common.ResourceState

GetResourceState returns the current state of the iresource

func (*Listener) IsDependentRegistered

func (s *Listener) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)

IsDependentRegistered returns true if the listener dependent is registered

func (*Listener) IsResource

func (s *Listener) IsResource() bool

IsResource returns true if there is an oci id, otherwise false

func (*Listener) RemoveDependent

func (s *Listener) RemoveDependent(kind string, obj runtime.Object) error

RemoveDependent removes a listener dependent

func (*Listener) SetResource

func (s *Listener) SetResource(r *ocilb.Listener) *Listener

SetResource sets the resource in listener status

type ListenerList

type ListenerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Listener `json:"items"`
}

ListenerList is a list of Listener items

func (*ListenerList) DeepCopy

func (in *ListenerList) DeepCopy() *ListenerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerList.

func (*ListenerList) DeepCopyInto

func (in *ListenerList) DeepCopyInto(out *ListenerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ListenerList) DeepCopyObject

func (in *ListenerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ListenerResource

type ListenerResource struct {
	*ocilb.Listener
}

ListenerResource describes a listener resource from oci

func (*ListenerResource) DeepCopy

func (in *ListenerResource) DeepCopy() (out *ListenerResource)

DeepCopy the listener oci resource

func (*ListenerResource) DeepCopyInto

func (in *ListenerResource) DeepCopyInto(out *ListenerResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ListenerSpec

type ListenerSpec struct {
	CertificateRef  string `json:"certificateRef"`
	LoadBalancerRef string `json:"loadBalancerRef"`

	DefaultBackendSetName string `header:"-" url:"-" json:"defaultBackendSetName"`
	Port                  int    `header:"-" url:"-" json:"port"`
	Protocol              string `header:"-" url:"-" json:"protocol"`
	IdleTimeout           int64  `header:"-" url:"-" json:"idleTimeout"`
	PathRouteSetName      string `header:"-" url:"-" json:"pathRouteSetName"`

	common.Dependency
}

ListenerSpec describes a listener spec

func (*ListenerSpec) DeepCopy

func (in *ListenerSpec) DeepCopy() *ListenerSpec

DeepCopy the listener spec

func (*ListenerSpec) DeepCopyInto

func (in *ListenerSpec) DeepCopyInto(out *ListenerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ListenerStatus

type ListenerStatus struct {
	common.ResourceStatus
	LoadBalancerId *string

	WorkRequestId     *string                              `json:"workRequestId,omitempty"`
	WorkRequestStatus *ocilb.WorkRequestLifecycleStateEnum `json:"workRequestStatus,omitempty"`

	Resource *ListenerResource `json:"resource,omitempty"`
}

ListenerStatus describes a listener status

func (*ListenerStatus) DeepCopy

func (in *ListenerStatus) DeepCopy() *ListenerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListenerStatus.

func (*ListenerStatus) DeepCopyInto

func (in *ListenerStatus) DeepCopyInto(out *ListenerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadBalancer

type LoadBalancer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              LoadBalancerSpec   `json:"spec"`
	Status            LoadBalancerStatus `json:"status,omitempty"`
}

LoadBalancer describes a load balancer

func (*LoadBalancer) AddDependent

func (s *LoadBalancer) AddDependent(kind string, obj runtime.Object) error

AddDependent adds a load balancer dependent

func (*LoadBalancer) DeepCopy

func (in *LoadBalancer) DeepCopy() *LoadBalancer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer.

func (*LoadBalancer) DeepCopyInto

func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoadBalancer) DeepCopyObject

func (in *LoadBalancer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*LoadBalancer) GetGroupVersionResource

func (s *LoadBalancer) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the group version of the load balancer type

func (*LoadBalancer) GetResourceID

func (s *LoadBalancer) GetResourceID() string

GetResourceID returns the oci id of the load balancer

func (*LoadBalancer) GetResourceLifecycleState

func (s *LoadBalancer) GetResourceLifecycleState() string

GetResourceLifecycleState returns the state of the load balancer

func (*LoadBalancer) GetResourcePlural

func (s *LoadBalancer) GetResourcePlural() string

GetResourcePlural returns the plural name of the load balancer type

func (*LoadBalancer) GetResourceState

func (s *LoadBalancer) GetResourceState() common.ResourceState

GetResourceState returns the current state of the iresource

func (*LoadBalancer) IsDependentRegistered

func (s *LoadBalancer) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)

IsDependentRegistered returns true if the load balancer dependent is registered

func (*LoadBalancer) IsResource

func (s *LoadBalancer) IsResource() bool

IsResource returns true if there is oci id and status is active, otherwise false

func (*LoadBalancer) RemoveDependent

func (s *LoadBalancer) RemoveDependent(kind string, obj runtime.Object) error

RemoveDependent removes a load balancer dependent

func (*LoadBalancer) SetResource

func (s *LoadBalancer) SetResource(r *ocilb.LoadBalancer) *LoadBalancer

SetResource set the resource in load balancer status

type LoadBalancerList

type LoadBalancerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []LoadBalancer `json:"items"`
}

LoadBalancerList is a list of LoadBalancer items

func (*LoadBalancerList) DeepCopy

func (in *LoadBalancerList) DeepCopy() *LoadBalancerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerList.

func (*LoadBalancerList) DeepCopyInto

func (in *LoadBalancerList) DeepCopyInto(out *LoadBalancerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoadBalancerList) DeepCopyObject

func (in *LoadBalancerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LoadBalancerResource

type LoadBalancerResource struct {
	*ocilb.LoadBalancer
}

LoadBalancerResource describes a load balancer resource from oci

func (*LoadBalancerResource) DeepCopy

func (in *LoadBalancerResource) DeepCopy() (out *LoadBalancerResource)

DeepCopy the load balancer oci resource

func (*LoadBalancerResource) DeepCopyInto

func (in *LoadBalancerResource) DeepCopyInto(out *LoadBalancerResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadBalancerSpec

type LoadBalancerSpec struct {
	CompartmentRef string   `json:"compartmentRef"`
	SubnetRefs     []string `json:"subnetRefs"`

	IsPrivate bool   `json:"isPrivate"`
	Shape     string `json:"shapeName"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
	// Example: `{"Operations": {"CostCenter": "42"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
	// For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
	// Example: `{"Department": "Finance"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	common.Dependency
}

LoadBalancerSpec describes a load balancer spec

func (*LoadBalancerSpec) DeepCopy

func (in *LoadBalancerSpec) DeepCopy() *LoadBalancerSpec

DeepCopy the load balancer spec

func (*LoadBalancerSpec) DeepCopyInto

func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadBalancerStatus

type LoadBalancerStatus struct {
	common.ResourceStatus

	WorkRequestId     *string                              `json:"workRequestId,omitempty"`
	WorkRequestStatus *ocilb.WorkRequestLifecycleStateEnum `json:"workRequestStatus,omitempty"`

	Resource *LoadBalancerResource `json:"resource,omitempty"`
}

LoadBalancerStatus describes a load balancer status

func (*LoadBalancerStatus) DeepCopy

func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerStatus.

func (*LoadBalancerStatus) DeepCopyInto

func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SSLConfiguration

type SSLConfiguration struct {
	CertificateName       string `json:"certificateName"`
	VerifyDepth           int    `json:"verifyDepth"`
	VerifyPeerCertificate bool   `json:"verifyPeerCertificate"`
}

SSLConfiguration describes the ssl configuration of the backend set

func (*SSLConfiguration) DeepCopy

func (in *SSLConfiguration) DeepCopy() *SSLConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSLConfiguration.

func (*SSLConfiguration) DeepCopyInto

func (in *SSLConfiguration) DeepCopyInto(out *SSLConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SessionPersistenceConfiguration

type SessionPersistenceConfiguration struct {
	CookieName      string `json:"cookieName"`
	DisableFallback bool   `json:"disableFallback"`
}

SessionPersistenceConfiguration descrbies the session persistence of the backend set

func (*SessionPersistenceConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionPersistenceConfiguration.

func (*SessionPersistenceConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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