iam

package
v0.12.103 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(credProvider provider.CredProvider, region string) (iamInternal, error)

Types

type IAM

type IAM struct {
	Connect func() (iamInternal, error)
	// contains filtered or unexported fields
}

func (*IAM) CreateRole

func (this *IAM) CreateRole(roleName, servicePrincipal string) (*Role, error)

func (*IAM) DeleteRole

func (this *IAM) DeleteRole(roleName string) error

func (*IAM) DeleteRolePolicy

func (this *IAM) DeleteRolePolicy(roleName, policyName string) error

func (*IAM) DeleteServerCertificate

func (this *IAM) DeleteServerCertificate(certName string) error

func (*IAM) GetAccountId

func (this *IAM) GetAccountId() (string, error)

func (*IAM) GetRole

func (this *IAM) GetRole(roleName string) (*Role, error)

func (*IAM) GetUser

func (this *IAM) GetUser(username *string) (*User, error)

func (*IAM) ListCertificates

func (this *IAM) ListCertificates() ([]*ServerCertificateMetadata, error)

func (*IAM) ListRolePolicies

func (this *IAM) ListRolePolicies(roleName string) ([]*string, error)

func (*IAM) ListRoles

func (this *IAM) ListRoles() ([]*string, error)

func (*IAM) PutRolePolicy

func (this *IAM) PutRolePolicy(roleName, policy string) error

func (*IAM) UploadServerCertificate

func (this *IAM) UploadServerCertificate(name, path, body, pk string, optionalChain *string) (*ServerCertificateMetadata, error)

type Provider

type Provider interface {
	UploadServerCertificate(string, string, string, string, *string) (*ServerCertificateMetadata, error)
	ListCertificates() ([]*ServerCertificateMetadata, error)
	GetUser(username *string) (*User, error)
	DeleteServerCertificate(certName string) error
	CreateRole(roleName, servicePrincipal string) (*Role, error)
	GetRole(roleName string) (*Role, error)
	PutRolePolicy(roleName, policy string) error
	GetAccountId() (string, error)
	DeleteRole(roleName string) error
	DeleteRolePolicy(roleName, policyName string) error
	ListRolePolicies(roleName string) ([]*string, error)
	ListRoles() ([]*string, error)
}

func NewIAM

func NewIAM(credProvider provider.CredProvider, region string) (Provider, error)

type Role

type Role struct {
	*iam.Role
}

type ServerCertificateMetadata

type ServerCertificateMetadata struct {
	*iam.ServerCertificateMetadata
}

func NewServerCertificateMetadata

func NewServerCertificateMetadata(name, arn string) *ServerCertificateMetadata

type User

type User struct {
	*iam.User
}

func NewUser

func NewUser() *User

Directories

Path Synopsis
Package mock_iam is a generated GoMock package.
Package mock_iam is a generated GoMock package.

Jump to

Keyboard shortcuts

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