mock

package
v0.0.0-...-12fbc85 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceAccountFetcher

type ServiceAccountFetcher struct {
	GetFunc func(ctx context.Context, name string) (*iam.ServiceAccount, error)
}

func NewServiceAccountFetcher

func NewServiceAccountFetcher(sa *iam.ServiceAccount, err error) *ServiceAccountFetcher

func (*ServiceAccountFetcher) Get

func (f *ServiceAccountFetcher) Get(ctx context.Context, name string) (*iam.ServiceAccount, error)

type ServiceAccountPolicyManager

type ServiceAccountPolicyManager struct {
	GetPolicyFunc func(ctx context.Context, name string) (*iam.Policy, error)
	SetPolicyFunc func(ctx context.Context, name string, policy *iam.Policy) (*iam.Policy, error)
}

func NewServiceAccountPolicyManager

func NewServiceAccountPolicyManager(policy *iam.Policy, err error) *ServiceAccountPolicyManager

func (*ServiceAccountPolicyManager) GetPolicy

func (m *ServiceAccountPolicyManager) GetPolicy(ctx context.Context, name string) (*iam.Policy, error)

func (*ServiceAccountPolicyManager) SetPolicy

func (m *ServiceAccountPolicyManager) SetPolicy(ctx context.Context, name string, policy *iam.Policy) (*iam.Policy, error)

Jump to

Keyboard shortcuts

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