Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=ocilb.oracle.com
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Backend
- func (s *Backend) AddDependent(kind string, obj runtime.Object) error
- func (in *Backend) DeepCopy() *Backend
- func (in *Backend) DeepCopyInto(out *Backend)
- func (in *Backend) DeepCopyObject() runtime.Object
- func (s *Backend) GetGroupVersionResource() schema.GroupVersionResource
- func (s *Backend) GetResourceID() string
- func (s *Backend) GetResourcePlural() string
- func (s *Backend) GetResourceState() common.ResourceState
- func (s *Backend) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *Backend) IsResource() bool
- func (s *Backend) RemoveDependent(kind string, obj runtime.Object) error
- func (s *Backend) SetResource(r *ocilb.Backend) *Backend
- type BackendList
- type BackendResource
- type BackendSet
- func (s *BackendSet) AddDependent(kind string, obj runtime.Object) error
- func (in *BackendSet) DeepCopy() *BackendSet
- func (in *BackendSet) DeepCopyInto(out *BackendSet)
- func (in *BackendSet) DeepCopyObject() runtime.Object
- func (s *BackendSet) GetGroupVersionResource() schema.GroupVersionResource
- func (s *BackendSet) GetResourceID() string
- func (s *BackendSet) GetResourcePlural() string
- func (s *BackendSet) GetResourceState() common.ResourceState
- func (s *BackendSet) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *BackendSet) IsResource() bool
- func (s *BackendSet) RemoveDependent(kind string, obj runtime.Object) error
- func (s *BackendSet) SetResource(r *ocilb.BackendSet) *BackendSet
- type BackendSetList
- type BackendSetResource
- type BackendSetSpec
- type BackendSetStatus
- type BackendSpec
- type BackendStatus
- type Certificate
- func (s *Certificate) AddDependent(kind string, obj runtime.Object) error
- func (in *Certificate) DeepCopy() *Certificate
- func (in *Certificate) DeepCopyInto(out *Certificate)
- func (in *Certificate) DeepCopyObject() runtime.Object
- func (s *Certificate) GetGroupVersionResource() schema.GroupVersionResource
- func (s *Certificate) GetResourceID() string
- func (s *Certificate) GetResourcePlural() string
- func (s *Certificate) GetResourceState() common.ResourceState
- func (s *Certificate) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *Certificate) IsResource() bool
- func (s *Certificate) RemoveDependent(kind string, obj runtime.Object) error
- func (s *Certificate) SetResource(r *ocilb.Certificate) *Certificate
- type CertificateList
- type CertificateResource
- type CertificateSpec
- type CertificateStatus
- type HealthChecker
- type Listener
- func (s *Listener) AddDependent(kind string, obj runtime.Object) error
- func (in *Listener) DeepCopy() *Listener
- func (in *Listener) DeepCopyInto(out *Listener)
- func (in *Listener) DeepCopyObject() runtime.Object
- func (s *Listener) GetGroupVersionResource() schema.GroupVersionResource
- func (s *Listener) GetResourceID() string
- func (s *Listener) GetResourcePlural() string
- func (s *Listener) GetResourceState() common.ResourceState
- func (s *Listener) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *Listener) IsResource() bool
- func (s *Listener) RemoveDependent(kind string, obj runtime.Object) error
- func (s *Listener) SetResource(r *ocilb.Listener) *Listener
- type ListenerList
- type ListenerResource
- type ListenerSpec
- type ListenerStatus
- type LoadBalancer
- func (s *LoadBalancer) AddDependent(kind string, obj runtime.Object) error
- func (in *LoadBalancer) DeepCopy() *LoadBalancer
- func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)
- func (in *LoadBalancer) DeepCopyObject() runtime.Object
- func (s *LoadBalancer) GetGroupVersionResource() schema.GroupVersionResource
- func (s *LoadBalancer) GetResourceID() string
- func (s *LoadBalancer) GetResourceLifecycleState() string
- func (s *LoadBalancer) GetResourcePlural() string
- func (s *LoadBalancer) GetResourceState() common.ResourceState
- func (s *LoadBalancer) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *LoadBalancer) IsResource() bool
- func (s *LoadBalancer) RemoveDependent(kind string, obj runtime.Object) error
- func (s *LoadBalancer) SetResource(r *ocilb.LoadBalancer) *LoadBalancer
- type LoadBalancerList
- type LoadBalancerResource
- type LoadBalancerSpec
- type LoadBalancerStatus
- type SSLConfiguration
- type SessionPersistenceConfiguration
Constants ¶
const ( BackendKind = "Backend" BackendResourcePlural = "backends" BackendControllerName = "backends" )
Backend names
const ( BackendSetKind = "BackendSet" BackendSetResourcePlural = "backendsets" BackendSetControllerName = "backendsets" )
BackendSet names
const ( CertificateKind = "Certificate" CertificateResourcePlural = "certificates" CertificateControllerName = "certificates" )
Certificate names
const ( ListenerKind = "Listener" ListenerResourcePlural = "listeners" ListenerControllerName = "listeners" )
Listener names
const ( LoadBalancerKind = "LoadBalancer" LoadBalancerResourcePlural = "loadbalancers" LoadBalancerControllerName = "loadbalancers" )
LoadBalancer names
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Register scheme and api resources
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
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
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
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
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
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 ¶
AddDependent adds a backend dependent
func (*Backend) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.
func (*Backend) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backend) DeepCopyObject ¶
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 ¶
GetResourceID returns the oci id of the backend
func (*Backend) GetResourcePlural ¶
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 ¶
IsDependentRegistered returns true if the backend dependent is registered
func (*Backend) IsResource ¶
IsResource returns true if there is an oci id, otherwise false
func (*Backend) RemoveDependent ¶
RemoveDependent removes a backend dependent
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 ¶
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 ¶
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 ¶
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 ¶
AddDependent adds a listener dependent
func (*Listener) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
func (*Listener) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Listener) DeepCopyObject ¶
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 ¶
GetResourceID returns the oci id of the listener
func (*Listener) GetResourcePlural ¶
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 ¶
IsDependentRegistered returns true if the listener dependent is registered
func (*Listener) IsResource ¶
IsResource returns true if there is an oci id, otherwise false
func (*Listener) RemoveDependent ¶
RemoveDependent removes a listener dependent
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 ¶
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 ¶
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 ¶
func (in *SessionPersistenceConfiguration) DeepCopy() *SessionPersistenceConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionPersistenceConfiguration.
func (*SessionPersistenceConfiguration) DeepCopyInto ¶
func (in *SessionPersistenceConfiguration) DeepCopyInto(out *SessionPersistenceConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.