conversions

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiName

func ApiName(name string) *v1beta1.Name

func Bool

func Bool(b bool) *bool

func ConvertCrdAccessPolicyRuleToSdkAccessPolicyRule

func ConvertCrdAccessPolicyRuleToSdkAccessPolicyRule(crdObj *v1beta1.AccessPolicyRule, sdkObj *sdk.AccessPolicyRule, refIds map[string]api.OCID)

func ConvertCrdAccessPolicyToSdkAccessPolicy

func ConvertCrdAccessPolicyToSdkAccessPolicy(crdObj *v1beta1.AccessPolicy, sdkObj *sdk.AccessPolicy, dependencies *AccessPolicyDependencies)

func ConvertCrdDefinedTagsToSdkDefinedTags

func ConvertCrdDefinedTagsToSdkDefinedTags(crdObj *map[string]api.MapValue, sdkObj *map[string]map[string]interface{})

func ConvertCrdIngressGatewayRouteTableToSdkIngressGatewayRouteTable

func ConvertCrdIngressGatewayRouteTableToSdkIngressGatewayRouteTable(crdObj *v1beta1.IngressGatewayRouteTable, sdkObj *sdk.IngressGatewayRouteTable, dependencies *IGRTDependencies) error

func ConvertCrdIngressGatewayToSdkIngressGateway

func ConvertCrdIngressGatewayToSdkIngressGateway(crdObj *v1beta1.IngressGateway, sdkObj *sdk.IngressGateway, meshId *api.OCID)

ConvertCrdIngressGatewayToSdkIngressGateway converts a CRD object to an object that can be sent to the API

func ConvertCrdMeshToSdkMesh

func ConvertCrdMeshToSdkMesh(crdMesh *v1beta1.Mesh, sdkMesh *sdk.Mesh) error

func ConvertCrdTrafficRouteRuleDestinationToSdkTrafficRouteRuleDestination

func ConvertCrdTrafficRouteRuleDestinationToSdkTrafficRouteRuleDestination(crdObj *v1beta1.VirtualDeploymentTrafficRuleTarget, sdkObj *sdk.VirtualDeploymentTrafficRuleTarget, vdID api.OCID)

func ConvertCrdTrafficRouteRuleDestinationToSdkTrafficRouteRuleDestinationForIGRT

func ConvertCrdTrafficRouteRuleDestinationToSdkTrafficRouteRuleDestinationForIGRT(crdObj *v1beta1.VirtualServiceTrafficRuleTarget, sdkObj *sdk.VirtualServiceTrafficRuleTarget, vsID api.OCID)

func ConvertCrdTrafficTargetToSdkAccessPolicyTarget

func ConvertCrdTrafficTargetToSdkAccessPolicyTarget(crdObj *v1beta1.TrafficTarget, refId api.OCID) (sdk.AccessPolicyTarget, error)

func ConvertCrdVirtualDeploymentListenerToSdkVirtualDeploymentListener

func ConvertCrdVirtualDeploymentListenerToSdkVirtualDeploymentListener(crdListener []v1beta1.Listener) (sdkListeners []sdk.VirtualDeploymentListener)

ConvertCrdVirtualDeploymentListenerToSdkVirtualDeploymentListener converts a listener from a CRD object to a listener for an SDK object

func ConvertCrdVirtualDeploymentToSdkVirtualDeployment

func ConvertCrdVirtualDeploymentToSdkVirtualDeployment(crdObj *v1beta1.VirtualDeployment, sdkObj *sdk.VirtualDeployment, vsId *api.OCID)

ConvertCrdVirtualDeploymentToSdkVirtualDeployment converts a CRD object to an object that can be sent to the API

func ConvertCrdVirtualServiceToSdkVirtualService

func ConvertCrdVirtualServiceToSdkVirtualService(crdObj *v1beta1.VirtualService, sdkObj *sdk.VirtualService, meshId *api.OCID) error

func ConvertCrdVsrtToSdkVsrt

func ConvertCrdVsrtToSdkVsrt(crdObj *v1beta1.VirtualServiceRouteTable, sdkObj *sdk.VirtualServiceRouteTable, dependencies *VSRTDependencies) error

func ConvertCrdVsrtTrafficRouteRuleToSdkTrafficRouteRule

func ConvertCrdVsrtTrafficRouteRuleToSdkTrafficRouteRule(crdObj *v1beta1.VirtualServiceTrafficRouteRule, sdkObj *sdk.VirtualServiceTrafficRouteRule, vdIds []api.OCID) error

func DeRefString

func DeRefString(s *string) string

func GetSpecName

func GetSpecName(specName *v1beta1.Name, metadata *metav1.ObjectMeta) *string

GetSpecName returns the spec name of the resource Returns spec.Name if present in the crd, else returns the metadata name of the resource appended to the namespace of the resource

func Integer

func Integer(i int) *int

func OCID

func OCID(ocid string) *api.OCID

func Port

func Port(port int) *v1beta1.Port

func PortToInt

func PortToInt(port *v1beta1.Port) *int

func String

func String(s string) *string

Types

type AccessPolicyDependencies

type AccessPolicyDependencies struct {
	MeshId        api.OCID
	RefIdForRules []map[string]api.OCID
}

type IGRTDependencies

type IGRTDependencies struct {
	IngressGatewayId   api.OCID
	IngressGatewayName v1beta1.Name
	VsIdForRules       [][]api.OCID
}

type VSRTDependencies

type VSRTDependencies struct {
	VirtualServiceId   api.OCID
	VirtualServiceName v1beta1.Name
	VdIdForRules       [][]api.OCID
}

Jump to

Keyboard shortcuts

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