customrole

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 GenerateCreateCustomRoleOptions

func GenerateCreateCustomRoleOptions(in v1alpha1.CustomRoleParameters, o *iampmv1.CreateRoleOptions) error

GenerateCreateCustomRoleOptions produces CustomRoleOptions object from CustomRoleParameters object.

func GenerateCustomRoleParameters

func GenerateCustomRoleParameters(in *iampmv1.CustomRole) (*v1alpha1.CustomRoleParameters, error)

GenerateCustomRoleParameters generates service instance parameters from resource instance

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.CustomRole) (v1alpha1.CustomRoleObservation, error)

GenerateObservation produces CustomRoleObservation object from *iampmv1.CustomRole object.

func GenerateUpdateCustomRoleOptions

func GenerateUpdateCustomRoleOptions(id, eTag string, in v1alpha1.CustomRoleParameters, o *iampmv1.UpdateRoleOptions) error

GenerateUpdateCustomRoleOptions produces UpdateCustomRoleOptions object from CustomRole object.

func IsUpToDate

func IsUpToDate(in *v1alpha1.CustomRoleParameters, observed *iampmv1.CustomRole, 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.CustomRoleParameters, in *iampmv1.CustomRole) error

LateInitializeSpec fills optional and unassigned fields with the values in *iampmv1.CustomRole object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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