serviceaccountpolicy

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePoliciesSame

func ArePoliciesSame(p1, p2 *iam.Policy) bool

ArePoliciesSame compares and returns true if two policies are same

func GenerateServiceAccountPolicyInstance

func GenerateServiceAccountPolicyInstance(in v1alpha1.ServiceAccountPolicyParameters, p *iam.Policy)

GenerateServiceAccountPolicyInstance generates *iam.Policy instance from ServiceAccountPolicyParameters.

func IsEmpty

func IsEmpty(in *iam.Policy) bool

IsEmpty returns if Policy is empty

func IsUpToDate

func IsUpToDate(in *v1alpha1.ServiceAccountPolicyParameters, observed *iam.Policy) (bool, error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

Types

type Client

type Client interface {
	GetIamPolicy(resource string) *iam.ProjectsServiceAccountsGetIamPolicyCall
	SetIamPolicy(resource string, setiampolicyrequest *iam.SetIamPolicyRequest) *iam.ProjectsServiceAccountsSetIamPolicyCall
}

Client should be satisfied to conduct SA operations.

Jump to

Keyboard shortcuts

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