policy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

func GenerateMetaV1Time(t *strfmt.DateTime) *metav1.Time

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.

Jump to

Keyboard shortcuts

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