Documentation ¶
Index ¶
- Constants
- func GenerateCRResourceAttributes(in []iampmv1.ResourceAttribute) []v1alpha1.ResourceAttribute
- func GenerateCRResources(in []iampmv1.PolicyResource) []v1alpha1.PolicyResource
- func GenerateCRRoles(in []iampmv1.PolicyRole) []v1alpha1.PolicyRole
- func GenerateCRSubjectAttributes(in []iampmv1.SubjectAttribute) []v1alpha1.SubjectAttribute
- func GenerateCRSubjects(in []iampmv1.PolicySubject) []v1alpha1.PolicySubject
- func GenerateCreatePolicyOptions(in v1alpha1.PolicyParameters, o *iampmv1.CreatePolicyOptions) error
- func GenerateMetaV1Time(t *strfmt.DateTime) *metav1.Time
- func GenerateObservation(in *iampmv1.Policy) (v1alpha1.PolicyObservation, error)
- func GeneratePolicyParameters(in *iampmv1.Policy) (*v1alpha1.PolicyParameters, error)
- func GenerateSDKResourceAttributes(in []v1alpha1.ResourceAttribute) []iampmv1.ResourceAttribute
- func GenerateSDKResources(in []v1alpha1.PolicyResource) []iampmv1.PolicyResource
- func GenerateSDKRoles(in []v1alpha1.PolicyRole) []iampmv1.PolicyRole
- func GenerateSDKSubjectAttributes(in []v1alpha1.SubjectAttribute) []iampmv1.SubjectAttribute
- func GenerateSDKSubjects(in []v1alpha1.PolicySubject) []iampmv1.PolicySubject
- func GenerateUpdatePolicyOptions(id, eTag string, in v1alpha1.PolicyParameters, o *iampmv1.UpdatePolicyOptions) error
- func IsUpToDate(in *v1alpha1.PolicyParameters, observed *iampmv1.Policy, l logging.Logger) (bool, error)
- func LateInitializeSpec(spec *v1alpha1.PolicyParameters, in *iampmv1.Policy) error
Constants ¶
const ( // StateActive represents a policy in a running, available, and ready state StateActive = "active" // StateInactive represents an inactive policy StateInactive = "inactive" )
Variables ¶
This section is empty.
Functions ¶
func GenerateCRResourceAttributes ¶
func GenerateCRResourceAttributes(in []iampmv1.ResourceAttribute) []v1alpha1.ResourceAttribute
GenerateCRResourceAttributes -
func GenerateCRResources ¶
func GenerateCRResources(in []iampmv1.PolicyResource) []v1alpha1.PolicyResource
GenerateCRResources -
func GenerateCRRoles ¶
func GenerateCRRoles(in []iampmv1.PolicyRole) []v1alpha1.PolicyRole
GenerateCRRoles -
func GenerateCRSubjectAttributes ¶
func GenerateCRSubjectAttributes(in []iampmv1.SubjectAttribute) []v1alpha1.SubjectAttribute
GenerateCRSubjectAttributes -
func GenerateCRSubjects ¶
func GenerateCRSubjects(in []iampmv1.PolicySubject) []v1alpha1.PolicySubject
GenerateCRSubjects -
func GenerateCreatePolicyOptions ¶
func GenerateCreatePolicyOptions(in v1alpha1.PolicyParameters, o *iampmv1.CreatePolicyOptions) error
GenerateCreatePolicyOptions produces PolicyOptions object from PolicyParameters object.
func GenerateMetaV1Time ¶
GenerateMetaV1Time converts strfmt.DateTime to metav1.Time TODO - extract this to parent `clients` package
func GenerateObservation ¶
func GenerateObservation(in *iampmv1.Policy) (v1alpha1.PolicyObservation, error)
GenerateObservation produces PolicyObservation object from *iampmv1.Policy object.
func GeneratePolicyParameters ¶
func GeneratePolicyParameters(in *iampmv1.Policy) (*v1alpha1.PolicyParameters, error)
GeneratePolicyParameters generates service instance parameters from resource instance
func GenerateSDKResourceAttributes ¶
func GenerateSDKResourceAttributes(in []v1alpha1.ResourceAttribute) []iampmv1.ResourceAttribute
GenerateSDKResourceAttributes -
func GenerateSDKResources ¶
func GenerateSDKResources(in []v1alpha1.PolicyResource) []iampmv1.PolicyResource
GenerateSDKResources -
func GenerateSDKRoles ¶
func GenerateSDKRoles(in []v1alpha1.PolicyRole) []iampmv1.PolicyRole
GenerateSDKRoles -
func GenerateSDKSubjectAttributes ¶
func GenerateSDKSubjectAttributes(in []v1alpha1.SubjectAttribute) []iampmv1.SubjectAttribute
GenerateSDKSubjectAttributes -
func GenerateSDKSubjects ¶
func GenerateSDKSubjects(in []v1alpha1.PolicySubject) []iampmv1.PolicySubject
GenerateSDKSubjects -
func GenerateUpdatePolicyOptions ¶
func GenerateUpdatePolicyOptions(id, eTag string, in v1alpha1.PolicyParameters, o *iampmv1.UpdatePolicyOptions) error
GenerateUpdatePolicyOptions produces UpdatePolicyOptions object from Policy object.
func IsUpToDate ¶
func IsUpToDate(in *v1alpha1.PolicyParameters, observed *iampmv1.Policy, l logging.Logger) (bool, error)
IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.
func LateInitializeSpec ¶
func LateInitializeSpec(spec *v1alpha1.PolicyParameters, in *iampmv1.Policy) error
LateInitializeSpec fills optional and unassigned fields with the values in *iampmv1.Policy object.
Types ¶
This section is empty.