iam

package
v1.5.1 Latest Latest
Warning

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

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

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.

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 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 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 DeletePolicyMemberServiceAccount added in v1.1.0

func DeletePolicyMemberServiceAccount(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 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 GetPolicyMemberServiceAccount

func GetPolicyMemberServiceAccount(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 GetRole

func GetServiceAccount

func GetServiceAccount(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 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 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 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 SetPolicyWithEtagServiceAccount added in v1.1.0

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

func UnstructuredToRole

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

func UnstructuredToServiceAccount

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

func UnstructuredToWorkloadIdentityPool

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

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 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 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)

Jump to

Keyboard shortcuts

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