core

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.

Index

Constants

View Source
const (
	OciDomain = "core"
)

OciDomain is unique domain string for all resources in core package

Variables

This section is empty.

Functions

func NewDhcpOptionAdapter

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

NewDhcpOptionAdapter creates a new adapter for dhcp options resource

func NewInstanceAdapter

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

NewInstanceAdapter creates a new adapter for instance resource

func NewInternetGatewayAdapter

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

NewInternetGatewayAdapter creates a new adapter for internet gateway resource

func NewRouteTableAdapter

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

NewRouteTableAdapter creates a new adapter for route table resource

func NewSecurityRuleSetAdapter

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

NewSecurityRuleSetAdapter creates a new adapter for security rule set resource

func NewSubnetAdapter

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

NewSubnetAdapter creates a new adapter for subnet resource

func NewVcnAdapter

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

NewVcnAdapter creates a new adapter for vcn resource

func NewVolumeAdapter

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

NewVolumeAdapter creates a new adapter for volume resource

func NewVolumeBackupAdapter

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

NewVolumeBackupAdapter creates a new adapter for volume backup resource

Types

type DhcpOptionAdapter

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

DhcpOptionAdapter implements the adapter interface for dhcp options resource

func (*DhcpOptionAdapter) Copy

Copy returns a copy of a dhcp options object

func (*DhcpOptionAdapter) Create

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

Create creates the dhcp options resource in oci

func (*DhcpOptionAdapter) CreateObject

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

CreateObject creates the dhcp options object

func (*DhcpOptionAdapter) Delete

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

Delete deletes the dhcp options resource in oci

func (*DhcpOptionAdapter) DeleteObject

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

DeleteObject deletes the dhcp options object

func (*DhcpOptionAdapter) Dependents

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

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

func (*DhcpOptionAdapter) DependsOn

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

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

func (*DhcpOptionAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the dhcp options depends on

func (*DhcpOptionAdapter) Equivalent

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

Equivalent checks if two dhcp options objects are the same

func (*DhcpOptionAdapter) Get

Get retrieves the dhcp options resource from oci

func (*DhcpOptionAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*DhcpOptionAdapter) Id

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

func (*DhcpOptionAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*DhcpOptionAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*DhcpOptionAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two objects are the same

func (*DhcpOptionAdapter) Kind

func (a *DhcpOptionAdapter) Kind() string

Kind returns the resource kind string

func (*DhcpOptionAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the dhcp options object

func (*DhcpOptionAdapter) ObjectType

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

ObjectType returns the dhcp options type for this adapter

func (*DhcpOptionAdapter) Resource

func (a *DhcpOptionAdapter) Resource() string

Resource returns the plural name of the resource type

func (*DhcpOptionAdapter) Update

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

Update updates the dhcp options resource in oci

func (*DhcpOptionAdapter) UpdateForResource

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

UpdateForResource calls a common UpdateForResource method to update the dhcp options resource in the dhcp options object

func (*DhcpOptionAdapter) UpdateObject

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

UpdateObject updates the dhcp options object

type InstanceAdapter

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

InstanceAdapter implements the adapter interface for instance resource

func (*InstanceAdapter) BootVolume

func (a *InstanceAdapter) BootVolume(obj runtime.Object) (resource *ocicorev1alpha1.BootVolumeResource, err error)

BootVolume returns the boot volume resource of the instance

func (*InstanceAdapter) Copy

Copy returns a copy of a instance object

func (*InstanceAdapter) Create

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

Create creates the instance resource in oci

func (*InstanceAdapter) CreateObject

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

CreateObject creates the instance object

func (*InstanceAdapter) Delete

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

Delete deletes the instance resource in oci

func (*InstanceAdapter) DeleteObject

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

DeleteObject deletes the instance object

func (*InstanceAdapter) Dependents

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

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

func (*InstanceAdapter) DependsOn

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

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

func (*InstanceAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the instance depends on

func (*InstanceAdapter) Equivalent

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

Equivalent checks if two instance objects are the same

func (*InstanceAdapter) Get

Get retrieves the instance resource from oci

func (*InstanceAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*InstanceAdapter) Id

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

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

func (*InstanceAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*InstanceAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*InstanceAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*InstanceAdapter) Kind

func (a *InstanceAdapter) Kind() string

Kind returns the resource kind string

func (*InstanceAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the instance object

func (*InstanceAdapter) ObjectType

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

ObjectType returns the instance type for this adapter

func (*InstanceAdapter) PrimaryVnic

PrimaryVnic returns the primary vnic resource of the instance

func (*InstanceAdapter) Resource

func (a *InstanceAdapter) Resource() string

Resource returns the plural name of the resource type

func (*InstanceAdapter) Update

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

Update updates the instance resource in oci

func (*InstanceAdapter) UpdateForResource

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

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

func (*InstanceAdapter) UpdateObject

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

UpdateObject updates the instance object

type InternetGatewayAdapter

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

InternetGatewayAdapter implements the adapter interface for internet gateway resource

func (*InternetGatewayAdapter) Copy

Copy returns a copy of a internet gateway object

func (*InternetGatewayAdapter) Create

Create creates the internet gateway resource in oci

func (*InternetGatewayAdapter) CreateObject

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

CreateObject creates the internet gateway object

func (*InternetGatewayAdapter) Delete

Delete deletes the internet gateway resource in oci

func (*InternetGatewayAdapter) DeleteObject

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

DeleteObject deletes the internet gateway object

func (*InternetGatewayAdapter) Dependents

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

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

func (*InternetGatewayAdapter) DependsOn

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

func (*InternetGatewayAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the internet gateway depends on

func (*InternetGatewayAdapter) Equivalent

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

Equivalent checks if two internet gateway objects are the same

func (*InternetGatewayAdapter) Get

Get retrieves the internet gateway resource from oci

func (*InternetGatewayAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*InternetGatewayAdapter) Id

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

func (*InternetGatewayAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*InternetGatewayAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*InternetGatewayAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*InternetGatewayAdapter) Kind

func (a *InternetGatewayAdapter) Kind() string

Kind returns the resource kind string

func (*InternetGatewayAdapter) ObjectMeta

ObjectMeta returns the object meta struct from the internet gateway object

func (*InternetGatewayAdapter) ObjectType

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

ObjectType returns the internet gateway type for this adapter

func (*InternetGatewayAdapter) Resource

func (a *InternetGatewayAdapter) Resource() string

Resource returns the plural name of the resource type

func (*InternetGatewayAdapter) Update

Update updates the internet gateway resource in oci

func (*InternetGatewayAdapter) UpdateForResource

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

UpdateForResource calls a common UpdateForResource method to update the internet gateway resource in the internet gateway object

func (*InternetGatewayAdapter) UpdateObject

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

UpdateObject updates the internet gateway object

type RouteTableAdapter

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

RouteTableAdapter implements the adapter interface for route table resource

func (*RouteTableAdapter) Copy

Copy returns a copy of a route table object

func (*RouteTableAdapter) Create

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

Create creates the route table resource in oci

func (*RouteTableAdapter) CreateObject

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

CreateObject creates the route table object

func (*RouteTableAdapter) Delete

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

Delete deletes the route table resource in oci

func (*RouteTableAdapter) DeleteObject

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

DeleteObject deletes the route table object

func (*RouteTableAdapter) Dependents

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

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

func (*RouteTableAdapter) DependsOn

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

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

func (*RouteTableAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the route table depends on

func (*RouteTableAdapter) Equivalent

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

Equivalent checks if two route table objects are the same

func (*RouteTableAdapter) Get

Get retrieves the route table resource from oci

func (*RouteTableAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*RouteTableAdapter) Id

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

func (*RouteTableAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*RouteTableAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*RouteTableAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*RouteTableAdapter) Kind

func (a *RouteTableAdapter) Kind() string

Kind returns the resource kind string

func (*RouteTableAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the route table object

func (*RouteTableAdapter) ObjectType

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

ObjectType returns the route table type for this adapter

func (*RouteTableAdapter) Resource

func (a *RouteTableAdapter) Resource() string

Resource returns the plural name of the resource type

func (*RouteTableAdapter) Update

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

Update updates the route table resource in oci

func (*RouteTableAdapter) UpdateForResource

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

UpdateForResource calls a common UpdateForResource method to update the route table resource in the route table object

func (*RouteTableAdapter) UpdateObject

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

UpdateObject updates the route table object

type SecurityRuleSetAdapter

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

SecurityRuleSetAdapter implements the adapter interface for security rule set resource

func (*SecurityRuleSetAdapter) Copy

Copy returns a copy of a security rule set object

func (*SecurityRuleSetAdapter) Create

Create creates the security rule set resource in oci

func (*SecurityRuleSetAdapter) CreateObject

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

CreateObject creates the security rule set object

func (*SecurityRuleSetAdapter) Delete

Delete deletes the security rule set resource in oci

func (*SecurityRuleSetAdapter) DeleteObject

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

DeleteObject deletes the security rule set object

func (*SecurityRuleSetAdapter) Dependents

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

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

func (*SecurityRuleSetAdapter) DependsOn

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

func (*SecurityRuleSetAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the security rule set depends on

func (*SecurityRuleSetAdapter) Equivalent

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

Equivalent checks if two security rule set objects are the same

func (*SecurityRuleSetAdapter) Get

Get retrieves the security rule set resource from oci

func (*SecurityRuleSetAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*SecurityRuleSetAdapter) Id

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

func (*SecurityRuleSetAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*SecurityRuleSetAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*SecurityRuleSetAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*SecurityRuleSetAdapter) Kind

func (a *SecurityRuleSetAdapter) Kind() string

Kind returns the resource kind string

func (*SecurityRuleSetAdapter) ObjectMeta

ObjectMeta returns the object meta struct from the security rule set object

func (*SecurityRuleSetAdapter) ObjectType

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

ObjectType returns the security rule set type for this adapter

func (*SecurityRuleSetAdapter) Resource

func (a *SecurityRuleSetAdapter) Resource() string

Resource returns the plural name of the resource type

func (*SecurityRuleSetAdapter) Update

Update updates the security rule set resource in oci

func (*SecurityRuleSetAdapter) UpdateForResource

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

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

func (*SecurityRuleSetAdapter) UpdateObject

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

UpdateObject updates the security rule set object

type SubnetAdapter

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

SubnetAdapter implements the adapter interface for volume resource

func (*SubnetAdapter) Copy

func (a *SubnetAdapter) Copy(obj runtime.Object) runtime.Object

Copy returns a copy of a subnet object

func (*SubnetAdapter) Create

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

Create creates the subnet resource in oci

func (*SubnetAdapter) CreateObject

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

CreateObject creates the subnet object

func (*SubnetAdapter) Delete

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

Delete deletes the subnet resource in oci

func (*SubnetAdapter) DeleteObject

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

DeleteObject deletes the subnet object

func (*SubnetAdapter) Dependents

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

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

func (*SubnetAdapter) DependsOn

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

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

func (*SubnetAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the subnet depends on

func (*SubnetAdapter) Equivalent

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

Equivalent checks if two subnet objects are the same

func (*SubnetAdapter) Get

Get retrieves the subnet resource from oci

func (*SubnetAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*SubnetAdapter) Id

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

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

func (*SubnetAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*SubnetAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*SubnetAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*SubnetAdapter) Kind

func (a *SubnetAdapter) Kind() string

Kind returns the resource kind string

func (*SubnetAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the subnet object

func (*SubnetAdapter) ObjectType

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

ObjectType returns the subnet type for this adapter

func (*SubnetAdapter) Resource

func (a *SubnetAdapter) Resource() string

Resource returns the plural name of the resource type

func (*SubnetAdapter) Update

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

Update updates the subnet resource in oci

func (*SubnetAdapter) UpdateForResource

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

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

func (*SubnetAdapter) UpdateObject

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

UpdateObject updates the subnet object

type VcnAdapter

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

VcnAdapter implements the adapter interface for vcn resource

func (*VcnAdapter) Copy

func (a *VcnAdapter) Copy(obj runtime.Object) runtime.Object

Copy returns a copy of a vcn object

func (*VcnAdapter) Create

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

Create creates the vcn resource in oci

func (*VcnAdapter) CreateObject

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

CreateObject creates the vcn object

func (*VcnAdapter) Delete

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

Delete deletes the vcn resource in oci

func (*VcnAdapter) DeleteObject

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

DeleteObject deletes the vcn object

func (*VcnAdapter) Dependents

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

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

func (*VcnAdapter) DependsOn

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

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

func (*VcnAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the vcn depends on

func (*VcnAdapter) Equivalent

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

Equivalent checks if two vcn objects are the same

func (*VcnAdapter) Get

func (a *VcnAdapter) Get(obj runtime.Object) (runtime.Object, error)

Get retrieves the vcn resource from oci

func (*VcnAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*VcnAdapter) Id

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

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

func (*VcnAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*VcnAdapter) IsResourceCompliant

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

IsResourceCompliant

func (*VcnAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*VcnAdapter) Kind

func (a *VcnAdapter) Kind() string

Kind returns the resource kind string

func (*VcnAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the vcn object

func (*VcnAdapter) ObjectType

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

ObjectType returns the vcn type for this adapter

func (*VcnAdapter) Resource

func (a *VcnAdapter) Resource() string

Resource returns the plural name of the resource type

func (*VcnAdapter) Update

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

Update updates the vcn resource in oci

func (*VcnAdapter) UpdateForResource

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

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

func (*VcnAdapter) UpdateObject

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

UpdateObject updates the vcn object

type VolumeAdapter

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

VolumeAdapter implements the adapter interface for volume resource

func (*VolumeAdapter) Copy

func (a *VolumeAdapter) Copy(obj runtime.Object) runtime.Object

Copy returns a copy of a volume object

func (*VolumeAdapter) Create

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

Create creates the volume resource in oci

func (*VolumeAdapter) CreateObject

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

CreateObject creates the volume object

func (*VolumeAdapter) Delete

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

Delete deletes the volume resource in oci

func (*VolumeAdapter) DeleteObject

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

DeleteObject deletes the volume object

func (*VolumeAdapter) Dependents

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

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

func (*VolumeAdapter) DependsOn

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

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

func (*VolumeAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the volume depends on

func (*VolumeAdapter) Equivalent

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

Equivalent checks if two volume objects are the same

func (*VolumeAdapter) Get

Get retrieves the volume resource from oci

func (*VolumeAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*VolumeAdapter) Id

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

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

func (*VolumeAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*VolumeAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*VolumeAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*VolumeAdapter) Kind

func (a *VolumeAdapter) Kind() string

Kind returns the resource kind string

func (*VolumeAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the volume object

func (*VolumeAdapter) ObjectType

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

ObjectType returns the volume type for this adapter

func (*VolumeAdapter) Resource

func (a *VolumeAdapter) Resource() string

Resource returns the plural name of the resource type

func (*VolumeAdapter) Update

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

Update updates the volume resource in oci

func (*VolumeAdapter) UpdateForResource

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

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

func (*VolumeAdapter) UpdateObject

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

UpdateObject updates the volume object

type VolumeBackupAdapter

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

VolumeBackupAdapter implements the adapter interface for volume backup resource

func (*VolumeBackupAdapter) Copy

Copy returns a copy of a volume backup object

func (*VolumeBackupAdapter) Create

Create creates the volume backup resource in oci

func (*VolumeBackupAdapter) CreateObject

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

CreateObject creates the volume backup object

func (*VolumeBackupAdapter) Delete

Delete deletes the volume backup resource in oci

func (*VolumeBackupAdapter) DeleteObject

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

DeleteObject deletes the volume backup object

func (*VolumeBackupAdapter) Dependents

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

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

func (*VolumeBackupAdapter) DependsOn

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

func (*VolumeBackupAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the volume backup depends on

func (*VolumeBackupAdapter) Equivalent

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

Equivalent checks if two volume backup objects are the same

func (*VolumeBackupAdapter) Get

Get retrieves the volume backup resource from oci

func (*VolumeBackupAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*VolumeBackupAdapter) Id

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

func (*VolumeBackupAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*VolumeBackupAdapter) IsResourceCompliant

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

IsResourceCompliant checks if resource config is complient with CRD spec

func (*VolumeBackupAdapter) IsResourceStatusChanged

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

IsResourceStatusChanged checks if two vcn objects are the same

func (*VolumeBackupAdapter) Kind

func (a *VolumeBackupAdapter) Kind() string

Kind returns the resource kind string

func (*VolumeBackupAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the volume backup object

func (*VolumeBackupAdapter) ObjectType

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

ObjectType returns the volume backup type for this adapter

func (*VolumeBackupAdapter) Resource

func (a *VolumeBackupAdapter) Resource() string

Resource returns the plural name of the resource type

func (*VolumeBackupAdapter) Update

Update updates the volume backup resource in oci

func (*VolumeBackupAdapter) UpdateForResource

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

UpdateForResource calls a common UpdateForResource method to update the volume backup resource in the volume backup object

func (*VolumeBackupAdapter) UpdateObject

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

UpdateObject updates the volume backup object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳