Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=ociidentity.oracle.com
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Compartment
- func (s *Compartment) AddDependent(kind string, obj runtime.Object) error
- func (in *Compartment) DeepCopy() *Compartment
- func (in *Compartment) DeepCopyInto(out *Compartment)
- func (in *Compartment) DeepCopyObject() runtime.Object
- func (s *Compartment) GetGroupVersionResource() schema.GroupVersionResource
- func (s *Compartment) GetResourceID() string
- func (s *Compartment) GetResourcePlural() string
- func (s *Compartment) GetResourceState() common.ResourceState
- func (s *Compartment) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *Compartment) IsResource() bool
- func (s *Compartment) RemoveDependent(kind string, obj runtime.Object) error
- func (s *Compartment) SetResource(r *ocisdkidentity.Compartment) *Compartment
- type CompartmentList
- type CompartmentResource
- type CompartmentSpec
- type CompartmentStatus
- type DynamicGroup
- func (s *DynamicGroup) AddDependent(kind string, obj runtime.Object) error
- func (in *DynamicGroup) DeepCopy() *DynamicGroup
- func (in *DynamicGroup) DeepCopyInto(out *DynamicGroup)
- func (in *DynamicGroup) DeepCopyObject() runtime.Object
- func (s *DynamicGroup) GetGroupVersionResource() schema.GroupVersionResource
- func (s *DynamicGroup) GetResourceID() string
- func (s *DynamicGroup) GetResourcePlural() string
- func (s *DynamicGroup) GetResourceState() common.ResourceState
- func (s *DynamicGroup) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *DynamicGroup) IsResource() bool
- func (s *DynamicGroup) RemoveDependent(kind string, obj runtime.Object) error
- func (s *DynamicGroup) SetResource(r *ocisdkidentity.DynamicGroup) *DynamicGroup
- type DynamicGroupList
- type DynamicGroupResource
- type DynamicGroupSpec
- type DynamicGroupStatus
- type Policy
- func (s *Policy) AddDependent(kind string, obj runtime.Object) error
- func (in *Policy) DeepCopy() *Policy
- func (in *Policy) DeepCopyInto(out *Policy)
- func (in *Policy) DeepCopyObject() runtime.Object
- func (s *Policy) GetGroupVersionResource() schema.GroupVersionResource
- func (s *Policy) GetResourceID() string
- func (s *Policy) GetResourcePlural() string
- func (s *Policy) GetResourceState() common.ResourceState
- func (s *Policy) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *Policy) IsResource() bool
- func (s *Policy) RemoveDependent(kind string, obj runtime.Object) error
- func (s *Policy) SetResource(r *ocisdkidentity.Policy) *Policy
- type PolicyList
- type PolicyResource
- type PolicySpec
- type PolicyStatus
Constants ¶
const ( CompartmentKind = "Compartment" CompartmentResourcePlural = "compartments" CompartmentControllerName = "compartments" )
Compartment names
const ( DynamicGroupKind = "DynamicGroup" DynamicGroupResourcePlural = "dynamicgroups" DynamicGroupControllerName = "dynamicgroups" )
DynamicGroup names
const ( PolicyKind = "Policy" PolicyResourcePlural = "policies" PolicyControllerName = "policies" )
Policy names
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Register scheme and api resources
var DynamicGroupValidation = apiextv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{ Properties: map[string]apiextv1beta1.JSONSchemaProps{ "metadata": common.MetaDataValidation, "spec": { Required: []string{"compartmentRef", "description", "matchingRule"}, Properties: map[string]apiextv1beta1.JSONSchemaProps{ "compartmentRef": { Type: common.ValidationTypeString, Pattern: common.AnyStringValidationRegex, }, "description": { Type: common.ValidationTypeString, Pattern: common.AnyStringValidationRegex, }, "matchingRule": { Type: common.ValidationTypeString, Pattern: common.AnyStringValidationRegex, }, }, }, }, }, }
DynamicGroupValidation describes the dynamic group validation schema
var PolicyValidation = apiextv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{ Properties: map[string]apiextv1beta1.JSONSchemaProps{ "metadata": common.MetaDataValidation, "spec": { Required: []string{"compartmentRef", "description", "statements"}, Properties: map[string]apiextv1beta1.JSONSchemaProps{ "compartmentRef": { Type: common.ValidationTypeString, Pattern: common.AnyStringValidationRegex, }, "description": { Type: common.ValidationTypeString, Pattern: common.AnyStringValidationRegex, }, "statements": { Type: common.ValidationTypeArray, }, }, }, }, }, }
PolicyValidation describes the policy 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 Compartment ¶
type Compartment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec CompartmentSpec `json:"spec"` Status CompartmentStatus `json:"status,omitempty"` }
Compartment describes a compartment
func (*Compartment) AddDependent ¶
func (s *Compartment) AddDependent(kind string, obj runtime.Object) error
AddDependent adds a compartment dependent
func (*Compartment) DeepCopy ¶
func (in *Compartment) DeepCopy() *Compartment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Compartment.
func (*Compartment) DeepCopyInto ¶
func (in *Compartment) DeepCopyInto(out *Compartment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Compartment) DeepCopyObject ¶
func (in *Compartment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Compartment) GetGroupVersionResource ¶
func (s *Compartment) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns the group version of the compartment type
func (*Compartment) GetResourceID ¶
func (s *Compartment) GetResourceID() string
GetResourceID returns the oci id of the compartment
func (*Compartment) GetResourcePlural ¶
func (s *Compartment) GetResourcePlural() string
GetResourcePlural returns the plural name of the compartment type
func (*Compartment) GetResourceState ¶
func (s *Compartment) GetResourceState() common.ResourceState
GetResourceState returns the current state of the iresource
func (*Compartment) IsDependentRegistered ¶
IsDependentRegistered returns true if the compartment dependent is registered
func (*Compartment) IsResource ¶
func (s *Compartment) IsResource() bool
IsResource returns true if there is oci id, otherwise false
func (*Compartment) RemoveDependent ¶
func (s *Compartment) RemoveDependent(kind string, obj runtime.Object) error
RemoveDependent removes a compartment dependent
func (*Compartment) SetResource ¶
func (s *Compartment) SetResource(r *ocisdkidentity.Compartment) *Compartment
SetResource sets the resource in compartment status
type CompartmentList ¶
type CompartmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Compartment `json:"items"` }
CompartmentList is a list of Compartment items
func (*CompartmentList) DeepCopy ¶
func (in *CompartmentList) DeepCopy() *CompartmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompartmentList.
func (*CompartmentList) DeepCopyInto ¶
func (in *CompartmentList) DeepCopyInto(out *CompartmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CompartmentList) DeepCopyObject ¶
func (in *CompartmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CompartmentResource ¶
type CompartmentResource struct {
ocisdkidentity.Compartment
}
CompartmentResource describes a compartment resource from oci
func (*CompartmentResource) DeepCopy ¶
func (in *CompartmentResource) DeepCopy() (out *CompartmentResource)
DeepCopy the compartment oci resource
func (*CompartmentResource) DeepCopyInto ¶
func (in *CompartmentResource) DeepCopyInto(out *CompartmentResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompartmentSpec ¶
type CompartmentSpec struct { Description string `json:"description,omitempty"` // 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"` // 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"` common.Dependency }
CompartmentSpec describes a compartment spec
func (*CompartmentSpec) DeepCopy ¶
func (in *CompartmentSpec) DeepCopy() *CompartmentSpec
DeepCopy the load balancer spec
func (*CompartmentSpec) DeepCopyInto ¶
func (in *CompartmentSpec) DeepCopyInto(out *CompartmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompartmentStatus ¶
type CompartmentStatus struct { common.ResourceStatus Shapes []string `json:"shapes,omitempty"` Images map[string]string `json:"images,omitempty"` AvailabilityDomains []string `json:"availabilityDomains,omitempty"` Resource *CompartmentResource `json:"resource,omitempty"` }
CompartmentStatus describes a compartment status
func (*CompartmentStatus) DeepCopy ¶
func (in *CompartmentStatus) DeepCopy() *CompartmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompartmentStatus.
func (*CompartmentStatus) DeepCopyInto ¶
func (in *CompartmentStatus) DeepCopyInto(out *CompartmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicGroup ¶
type DynamicGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec DynamicGroupSpec `json:"spec"` Status DynamicGroupStatus `json:"status,omitempty"` }
DynamicGroup describes a dynamic group
func (*DynamicGroup) AddDependent ¶
func (s *DynamicGroup) AddDependent(kind string, obj runtime.Object) error
AddDependent adds a dynamic group dependent
func (*DynamicGroup) DeepCopy ¶
func (in *DynamicGroup) DeepCopy() *DynamicGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicGroup.
func (*DynamicGroup) DeepCopyInto ¶
func (in *DynamicGroup) DeepCopyInto(out *DynamicGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicGroup) DeepCopyObject ¶
func (in *DynamicGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DynamicGroup) GetGroupVersionResource ¶
func (s *DynamicGroup) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns group version of the dynamic group type
func (*DynamicGroup) GetResourceID ¶
func (s *DynamicGroup) GetResourceID() string
GetResourceID returns oci id of the dynamic group
func (*DynamicGroup) GetResourcePlural ¶
func (s *DynamicGroup) GetResourcePlural() string
GetResourcePlural returns plural name of the dynamic group type
func (*DynamicGroup) GetResourceState ¶
func (s *DynamicGroup) GetResourceState() common.ResourceState
GetResourceState returns the current state of the iresource
func (*DynamicGroup) IsDependentRegistered ¶
IsDependentRegistered returns true if the dynamic group dependent is registered
func (*DynamicGroup) IsResource ¶
func (s *DynamicGroup) IsResource() bool
IsResource returns true if there is an oci id and state is available, otherwise false
func (*DynamicGroup) RemoveDependent ¶
func (s *DynamicGroup) RemoveDependent(kind string, obj runtime.Object) error
RemoveDependent removes a dynamic group dependent
func (*DynamicGroup) SetResource ¶
func (s *DynamicGroup) SetResource(r *ocisdkidentity.DynamicGroup) *DynamicGroup
SetResource sets the resource in the status of the dynamic group
type DynamicGroupList ¶
type DynamicGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []DynamicGroup `json:"items"` }
DynamicGroupList is a list of DynamicGroup resources
func (*DynamicGroupList) DeepCopy ¶
func (in *DynamicGroupList) DeepCopy() *DynamicGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicGroupList.
func (*DynamicGroupList) DeepCopyInto ¶
func (in *DynamicGroupList) DeepCopyInto(out *DynamicGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicGroupList) DeepCopyObject ¶
func (in *DynamicGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DynamicGroupResource ¶
type DynamicGroupResource struct {
ocisdkidentity.DynamicGroup
}
DynamicGroupResource describes a dynamic group resource from oci
func (*DynamicGroupResource) DeepCopy ¶
func (in *DynamicGroupResource) DeepCopy() (out *DynamicGroupResource)
DeepCopy the dynamic group oci resource
func (*DynamicGroupResource) DeepCopyInto ¶
func (in *DynamicGroupResource) DeepCopyInto(out *DynamicGroupResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicGroupSpec ¶
type DynamicGroupSpec struct { CompartmentRef string `json:"compartmentRef"` // The description you assign to the group. Does not have to be unique, and it's changeable. Description *string `mandatory:"true" json:"description"` // A rule string that defines which instance certificates will be matched. // For syntax, see Managing Dynamic Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingdynamicgroups.htm). MatchingRule *string `mandatory:"true" json:"matchingRule"` common.Dependency }
DynamicGroupSpec describes a dynamic group spec
func (*DynamicGroupSpec) DeepCopy ¶
func (in *DynamicGroupSpec) DeepCopy() *DynamicGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicGroupSpec.
func (*DynamicGroupSpec) DeepCopyInto ¶
func (in *DynamicGroupSpec) DeepCopyInto(out *DynamicGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicGroupStatus ¶
type DynamicGroupStatus struct { common.ResourceStatus Resource *DynamicGroupResource `json:"resource,omitempty"` }
DynamicGroupStatus describes a dynamic group status
func (*DynamicGroupStatus) DeepCopy ¶
func (in *DynamicGroupStatus) DeepCopy() *DynamicGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicGroupStatus.
func (*DynamicGroupStatus) DeepCopyInto ¶
func (in *DynamicGroupStatus) DeepCopyInto(out *DynamicGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Policy ¶
type Policy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec PolicySpec `json:"spec"` Status PolicyStatus `json:"status,omitempty"` }
Policy describes a policy
func (*Policy) AddDependent ¶
AddDependent adds a policy dependent
func (*Policy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (*Policy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Policy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Policy) GetGroupVersionResource ¶
func (s *Policy) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns group version of the policy type
func (*Policy) GetResourceID ¶
GetResourceID returns oci id of the policy
func (*Policy) GetResourcePlural ¶
GetResourcePlural returns plural name of the policy type
func (*Policy) GetResourceState ¶
func (s *Policy) GetResourceState() common.ResourceState
GetResourceState returns the current state of the iresource
func (*Policy) IsDependentRegistered ¶
IsDependentRegistered returns true if the policy dependent is registered
func (*Policy) IsResource ¶
IsResource returns true if there is an oci id and state is available, otherwise false
func (*Policy) RemoveDependent ¶
RemoveDependent removes a policy dependent
func (*Policy) SetResource ¶
func (s *Policy) SetResource(r *ocisdkidentity.Policy) *Policy
SetResource sets the resource in the status of the policy
type PolicyList ¶
type PolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Policy `json:"items"` }
PolicyList is a list of Policy resources
func (*PolicyList) DeepCopy ¶
func (in *PolicyList) DeepCopy() *PolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (*PolicyList) DeepCopyInto ¶
func (in *PolicyList) DeepCopyInto(out *PolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyList) DeepCopyObject ¶
func (in *PolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicyResource ¶
type PolicyResource struct {
ocisdkidentity.Policy
}
PolicyResource describes a policy resource from oci
func (*PolicyResource) DeepCopy ¶
func (in *PolicyResource) DeepCopy() (out *PolicyResource)
DeepCopy the policy oci resource
func (*PolicyResource) DeepCopyInto ¶
func (in *PolicyResource) DeepCopyInto(out *PolicyResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicySpec ¶
type PolicySpec struct { CompartmentRef string `json:"compartmentRef"` // The description you assign to the policy. Does not have to be unique, and it's changeable. Description *string `mandatory:"true" json:"description"` // An array of one or more policy statements written in the policy language. Statements []string `mandatory:"true" json:"statements"` common.Dependency }
PolicySpec describes a policy spec
func (*PolicySpec) DeepCopy ¶
func (in *PolicySpec) DeepCopy() *PolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec.
func (*PolicySpec) DeepCopyInto ¶
func (in *PolicySpec) DeepCopyInto(out *PolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyStatus ¶
type PolicyStatus struct { common.ResourceStatus Resource *PolicyResource `json:"resource,omitempty"` }
PolicyStatus describes a policy status
func (*PolicyStatus) DeepCopy ¶
func (in *PolicyStatus) DeepCopy() *PolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyStatus.
func (*PolicyStatus) DeepCopyInto ¶
func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.