iam

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package iam contains handwritten IAMPolicy-to-unstructured functions.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMember

ApplyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func ApplyPolicy

ApplyPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func ApplyRole

func ApplyRole(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyServiceAccount

func ApplyServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyWorkforcePool added in v1.14.0

func ApplyWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyWorkforcePoolProvider added in v1.14.0

func ApplyWorkforcePoolProvider(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyWorkloadIdentityPool

func ApplyWorkloadIdentityPool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyWorkloadIdentityPoolProvider

func ApplyWorkloadIdentityPoolProvider(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func DeleteMember

func DeleteMember(_ context.Context, _ *dcl.Config, _ *unstructured.Resource) error

DeleteMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func DeletePolicy

func DeletePolicy(_ context.Context, _ *dcl.Config, _ *unstructured.Resource) error

DeletePolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func DeletePolicyMemberServiceAccount added in v1.1.0

func DeletePolicyMemberServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error

func DeletePolicyMemberWorkforcePool added in v1.14.0

func DeletePolicyMemberWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error

func DeleteRole

func DeleteRole(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteServiceAccount

func DeleteServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteWorkforcePool added in v1.14.0

func DeleteWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteWorkforcePoolProvider added in v1.14.0

func DeleteWorkforcePoolProvider(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteWorkloadIdentityPool

func DeleteWorkloadIdentityPool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteWorkloadIdentityPoolProvider

func DeleteWorkloadIdentityPoolProvider(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func GetMember

GetMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func GetPolicy

GetPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func GetPolicyMemberServiceAccount

func GetPolicyMemberServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberWorkforcePool added in v1.14.0

func GetPolicyMemberWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyServiceAccount

func GetPolicyServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetPolicyWorkforcePool added in v1.14.0

func GetPolicyWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetRole

func GetServiceAccount

func GetServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetWorkforcePool added in v1.14.0

func GetWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetWorkforcePoolProvider added in v1.14.0

func GetWorkforcePoolProvider(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetWorkloadIdentityPool

func GetWorkloadIdentityPool(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetWorkloadIdentityPoolProvider

func GetWorkloadIdentityPoolProvider(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func IDMember

func IDMember(_ *unstructured.Resource) (string, error)

IDMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func IDPolicy

func IDPolicy(_ *unstructured.Resource) (string, error)

IDPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func ListRole

func ListRole(ctx context.Context, config *dcl.Config, parent string) ([]*unstructured.Resource, error)

func ListServiceAccount

func ListServiceAccount(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)

func ListWorkforcePool added in v1.14.0

func ListWorkforcePool(ctx context.Context, config *dcl.Config, location string, parent string) ([]*unstructured.Resource, error)

func ListWorkforcePoolProvider added in v1.14.0

func ListWorkforcePoolProvider(ctx context.Context, config *dcl.Config, location string, workforcepool string) ([]*unstructured.Resource, error)

func ListWorkloadIdentityPool

func ListWorkloadIdentityPool(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListWorkloadIdentityPoolProvider

func ListWorkloadIdentityPoolProvider(ctx context.Context, config *dcl.Config, project string, location string, workloadidentitypool string) ([]*unstructured.Resource, error)

func MemberDeletePolicyMember added in v1.1.0

func MemberDeletePolicyMember(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _ *unstructured.Resource) error

MemberDeletePolicyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberGetPolicy

func MemberGetPolicy(_ context.Context, _ *dcl.Config, _ *unstructured.Resource) (*unstructured.Resource, error)

MemberGetPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberGetPolicyMember

func MemberGetPolicyMember(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _, _ string) (*unstructured.Resource, error)

MemberGetPolicyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberHasDiff

func MemberHasDiff(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _ ...dcl.ApplyOption) (bool, error)

MemberHasDiff is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberSetPolicy

MemberSetPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberSetPolicyMember

MemberSetPolicyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberSetPolicyWithEtag added in v1.1.0

func MemberSetPolicyWithEtag(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _ *unstructured.Resource) (*unstructured.Resource, error)

MemberSetPolicyWithEtag is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func MemberToUnstructured

func MemberToUnstructured(r *iamDCL.Member) *unstructured.Resource

MemberToUnstructured converts a DCL IAM PolicyMember to an unstructured.Resource.

func PolicyDeletePolicyMember added in v1.1.0

func PolicyDeletePolicyMember(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _ *unstructured.Resource) error

PolicyDeletePolicyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicyGetPolicy

func PolicyGetPolicy(_ context.Context, _ *dcl.Config, _ *unstructured.Resource) (*unstructured.Resource, error)

PolicyGetPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicyGetPolicyMember

func PolicyGetPolicyMember(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _, _ string) (*unstructured.Resource, error)

PolicyGetPolicyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicyHasDiff

func PolicyHasDiff(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _ ...dcl.ApplyOption) (bool, error)

PolicyHasDiff is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicySetPolicy

PolicySetPolicy is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicySetPolicyMember

PolicySetPolicyMember is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicySetPolicyWithEtag added in v1.1.0

func PolicySetPolicyWithEtag(_ context.Context, _ *dcl.Config, _ *unstructured.Resource, _ *unstructured.Resource) (*unstructured.Resource, error)

PolicySetPolicyWithEtag is an empty function that will return an error because these types are meant to be handled by the resources that the policies apply to rather than by explicit policy resources.

func PolicyToUnstructured

func PolicyToUnstructured(r *iamDCL.Policy) *unstructured.Resource

PolicyToUnstructured converts a DCL IAM Policy to an unstructured.Resource.

func RoleHasDiff

func RoleHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func RoleID

func RoleID(u *unstructured.Resource) (string, error)

func RoleToUnstructured

func RoleToUnstructured(r *dclService.Role) *unstructured.Resource

func ServiceAccountHasDiff

func ServiceAccountHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func ServiceAccountID

func ServiceAccountID(u *unstructured.Resource) (string, error)

func ServiceAccountToUnstructured

func ServiceAccountToUnstructured(r *dclService.ServiceAccount) *unstructured.Resource

func SetPolicyMemberServiceAccount

func SetPolicyMemberServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)

func SetPolicyMemberWorkforcePool added in v1.14.0

func SetPolicyMemberWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)

func SetPolicyWithEtagServiceAccount added in v1.1.0

func SetPolicyWithEtagServiceAccount(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)

func SetPolicyWithEtagWorkforcePool added in v1.14.0

func SetPolicyWithEtagWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)

func SetPolicyWorkforcePool added in v1.14.0

func SetPolicyWorkforcePool(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)

func UnstructuredToMember

func UnstructuredToMember(u *unstructured.Resource) (*iamDCL.Member, error)

UnstructuredToMember converts an unstructured.Resource to a DCL IAM PolicyMember.

func UnstructuredToPolicy

func UnstructuredToPolicy(u *unstructured.Resource) (*iamDCL.Policy, error)

UnstructuredToPolicy converts an unstructured.Resource to a DCL IAM Policy.

func UnstructuredToRole

func UnstructuredToRole(u *unstructured.Resource) (*dclService.Role, error)

func UnstructuredToServiceAccount

func UnstructuredToServiceAccount(u *unstructured.Resource) (*dclService.ServiceAccount, error)

func UnstructuredToWorkforcePool added in v1.14.0

func UnstructuredToWorkforcePool(u *unstructured.Resource) (*dclService.WorkforcePool, error)

func UnstructuredToWorkforcePoolProvider added in v1.14.0

func UnstructuredToWorkforcePoolProvider(u *unstructured.Resource) (*dclService.WorkforcePoolProvider, error)

func UnstructuredToWorkloadIdentityPool

func UnstructuredToWorkloadIdentityPool(u *unstructured.Resource) (*dclService.WorkloadIdentityPool, error)

func WorkforcePoolHasDiff added in v1.14.0

func WorkforcePoolHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func WorkforcePoolID added in v1.14.0

func WorkforcePoolID(u *unstructured.Resource) (string, error)

func WorkforcePoolProviderHasDiff added in v1.14.0

func WorkforcePoolProviderHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func WorkforcePoolProviderID added in v1.14.0

func WorkforcePoolProviderID(u *unstructured.Resource) (string, error)

func WorkforcePoolProviderToUnstructured added in v1.14.0

func WorkforcePoolProviderToUnstructured(r *dclService.WorkforcePoolProvider) *unstructured.Resource

func WorkforcePoolToUnstructured added in v1.14.0

func WorkforcePoolToUnstructured(r *dclService.WorkforcePool) *unstructured.Resource

func WorkloadIdentityPoolHasDiff

func WorkloadIdentityPoolHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func WorkloadIdentityPoolID

func WorkloadIdentityPoolID(u *unstructured.Resource) (string, error)

func WorkloadIdentityPoolProviderHasDiff

func WorkloadIdentityPoolProviderHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func WorkloadIdentityPoolProviderID

func WorkloadIdentityPoolProviderID(u *unstructured.Resource) (string, error)

Types

type Member

type Member struct{}

Member describes a single IAMPolicyMember.

func (*Member) Apply

func (r *Member) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

Apply calls the empty ApplyMember function.

func (*Member) Delete

func (r *Member) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

Delete calls the empty DeleteMember function.

func (*Member) DeletePolicyMember added in v1.1.0

func (r *Member) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

DeletePolicyMember calls the empty MemberDeletePolicyMember function.

func (*Member) Get

func (r *Member) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

Get calls the empty GetMember function.

func (*Member) GetPolicy

func (r *Member) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

GetPolicy calls the empty MemberGetPolicy function.

func (*Member) GetPolicyMember

func (r *Member) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

GetPolicyMember calls the empty MemberGetPolicyMember function.

func (*Member) HasDiff

func (r *Member) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

HasDiff calls the empty MemberHasDiff function.

func (*Member) ID

func (r *Member) ID(resource *unstructured.Resource) (string, error)

ID calls the empty IDMember function.

func (*Member) STV

STV returns the ServiceTypeVersion of the IAM PolicyMember resource.

func (*Member) SetPolicy

func (r *Member) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

SetPolicy calls the empty MemberSetPolicy function.

func (*Member) SetPolicyMember

func (r *Member) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

SetPolicyMember calls the empty MemberSetPolicyMember function.

func (*Member) SetPolicyWithEtag added in v1.1.0

func (r *Member) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

SetPolicyWithEtag calls the empty MemberSetPolicyWithEtag function.

type Policy

type Policy struct{}

Policy describes a single IAMPolicy.

func (*Policy) Apply

func (r *Policy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

Apply calls the empty ApplyPolicy function.

func (*Policy) Delete

func (r *Policy) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

Delete calls the empty DeletePolicy function.

func (*Policy) DeletePolicyMember added in v1.1.0

func (r *Policy) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

DeletePolicyMember calls the empty PolicyDeletePolicyMember function.

func (*Policy) Get

func (r *Policy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

Get calls the empty GetPolicy function.

func (*Policy) GetPolicy

func (r *Policy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

GetPolicy calls the empty PolicyGetPolicy function.

func (*Policy) GetPolicyMember

func (r *Policy) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

GetPolicyMember calls the empty PolicyGetPolicyMember function.

func (*Policy) HasDiff

func (r *Policy) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

HasDiff calls the empty PolicyHasDiff function.

func (*Policy) ID

func (r *Policy) ID(resource *unstructured.Resource) (string, error)

ID calls the empty IDPolicy function.

func (*Policy) STV

STV returns the ServiceTypeVersion of the IAM Policy resource.

func (*Policy) SetPolicy

func (r *Policy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

SetPolicy calls the empty PolicySetPolicy function.

func (*Policy) SetPolicyMember

func (r *Policy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

SetPolicyMember calls the empty PolicySetPolicyMember function.

func (*Policy) SetPolicyWithEtag added in v1.1.0

func (r *Policy) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

SetPolicyWithEtag calls the empty PolicySetPolicyWithEtag function.

type Role

type Role struct{}

func (*Role) Apply

func (r *Role) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Role) Delete

func (r *Role) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Role) DeletePolicyMember added in v1.1.0

func (r *Role) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Role) Get

func (r *Role) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Role) GetPolicy

func (r *Role) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Role) GetPolicyMember

func (r *Role) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Role) HasDiff

func (r *Role) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Role) ID

func (r *Role) ID(resource *unstructured.Resource) (string, error)

func (*Role) STV

func (*Role) SetPolicy

func (r *Role) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Role) SetPolicyMember

func (r *Role) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Role) SetPolicyWithEtag added in v1.1.0

func (r *Role) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type ServiceAccount

type ServiceAccount struct{}

func (*ServiceAccount) Apply

func (r *ServiceAccount) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*ServiceAccount) Delete

func (r *ServiceAccount) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*ServiceAccount) DeletePolicyMember added in v1.1.0

func (r *ServiceAccount) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*ServiceAccount) Get

func (*ServiceAccount) GetPolicy

func (r *ServiceAccount) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*ServiceAccount) GetPolicyMember

func (r *ServiceAccount) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*ServiceAccount) HasDiff

func (r *ServiceAccount) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*ServiceAccount) ID

func (r *ServiceAccount) ID(resource *unstructured.Resource) (string, error)

func (*ServiceAccount) STV

func (*ServiceAccount) SetPolicy

func (r *ServiceAccount) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*ServiceAccount) SetPolicyMember

func (r *ServiceAccount) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*ServiceAccount) SetPolicyWithEtag added in v1.1.0

func (r *ServiceAccount) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type WorkforcePool added in v1.14.0

type WorkforcePool struct{}

func (*WorkforcePool) Apply added in v1.14.0

func (r *WorkforcePool) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*WorkforcePool) Delete added in v1.14.0

func (r *WorkforcePool) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*WorkforcePool) DeletePolicyMember added in v1.14.0

func (r *WorkforcePool) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*WorkforcePool) Get added in v1.14.0

func (r *WorkforcePool) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkforcePool) GetPolicy added in v1.14.0

func (r *WorkforcePool) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkforcePool) GetPolicyMember added in v1.14.0

func (r *WorkforcePool) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*WorkforcePool) HasDiff added in v1.14.0

func (r *WorkforcePool) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*WorkforcePool) ID added in v1.14.0

func (r *WorkforcePool) ID(resource *unstructured.Resource) (string, error)

func (*WorkforcePool) STV added in v1.14.0

func (*WorkforcePool) SetPolicy added in v1.14.0

func (r *WorkforcePool) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkforcePool) SetPolicyMember added in v1.14.0

func (r *WorkforcePool) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkforcePool) SetPolicyWithEtag added in v1.14.0

func (r *WorkforcePool) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type WorkforcePoolProvider added in v1.14.0

type WorkforcePoolProvider struct{}

func (*WorkforcePoolProvider) Apply added in v1.14.0

func (*WorkforcePoolProvider) Delete added in v1.14.0

func (r *WorkforcePoolProvider) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*WorkforcePoolProvider) DeletePolicyMember added in v1.14.0

func (r *WorkforcePoolProvider) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*WorkforcePoolProvider) Get added in v1.14.0

func (*WorkforcePoolProvider) GetPolicy added in v1.14.0

func (r *WorkforcePoolProvider) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkforcePoolProvider) GetPolicyMember added in v1.14.0

func (r *WorkforcePoolProvider) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*WorkforcePoolProvider) HasDiff added in v1.14.0

func (r *WorkforcePoolProvider) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*WorkforcePoolProvider) ID added in v1.14.0

func (*WorkforcePoolProvider) STV added in v1.14.0

func (*WorkforcePoolProvider) SetPolicy added in v1.14.0

func (*WorkforcePoolProvider) SetPolicyMember added in v1.14.0

func (r *WorkforcePoolProvider) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkforcePoolProvider) SetPolicyWithEtag added in v1.14.0

func (r *WorkforcePoolProvider) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type WorkloadIdentityPool

type WorkloadIdentityPool struct{}

func (*WorkloadIdentityPool) Apply

func (*WorkloadIdentityPool) Delete

func (r *WorkloadIdentityPool) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*WorkloadIdentityPool) DeletePolicyMember added in v1.1.0

func (r *WorkloadIdentityPool) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*WorkloadIdentityPool) Get

func (*WorkloadIdentityPool) GetPolicy

func (r *WorkloadIdentityPool) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkloadIdentityPool) GetPolicyMember

func (r *WorkloadIdentityPool) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*WorkloadIdentityPool) HasDiff

func (r *WorkloadIdentityPool) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*WorkloadIdentityPool) ID

func (*WorkloadIdentityPool) STV

func (*WorkloadIdentityPool) SetPolicy

func (*WorkloadIdentityPool) SetPolicyMember

func (r *WorkloadIdentityPool) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*WorkloadIdentityPool) SetPolicyWithEtag added in v1.1.0

func (r *WorkloadIdentityPool) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type WorkloadIdentityPoolProvider

type WorkloadIdentityPoolProvider struct{}

func (*WorkloadIdentityPoolProvider) Apply

func (*WorkloadIdentityPoolProvider) Delete

func (r *WorkloadIdentityPoolProvider) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*WorkloadIdentityPoolProvider) DeletePolicyMember added in v1.1.0

func (r *WorkloadIdentityPoolProvider) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*WorkloadIdentityPoolProvider) Get

func (*WorkloadIdentityPoolProvider) GetPolicy

func (*WorkloadIdentityPoolProvider) GetPolicyMember

func (r *WorkloadIdentityPoolProvider) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*WorkloadIdentityPoolProvider) HasDiff

func (r *WorkloadIdentityPoolProvider) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*WorkloadIdentityPoolProvider) ID

func (*WorkloadIdentityPoolProvider) STV

func (*WorkloadIdentityPoolProvider) SetPolicy

func (*WorkloadIdentityPoolProvider) SetPolicyMember

func (*WorkloadIdentityPoolProvider) SetPolicyWithEtag added in v1.1.0

func (r *WorkloadIdentityPoolProvider) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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