Documentation ¶
Index ¶
- func Connect(credProvider provider.CredProvider, region string) (iamInternal, error)
- type IAM
- func (this *IAM) CreateRole(roleName, servicePrincipal string) (*Role, error)
- func (this *IAM) DeleteRole(roleName string) error
- func (this *IAM) DeleteRolePolicy(roleName, policyName string) error
- func (this *IAM) DeleteServerCertificate(certName string) error
- func (this *IAM) GetAccountId() (string, error)
- func (this *IAM) GetRole(roleName string) (*Role, error)
- func (this *IAM) GetUser(username *string) (*User, error)
- func (this *IAM) ListCertificates() ([]*ServerCertificateMetadata, error)
- func (this *IAM) ListRolePolicies(roleName string) ([]*string, error)
- func (this *IAM) ListRoles() ([]*string, error)
- func (this *IAM) PutRolePolicy(roleName, policy string) error
- func (this *IAM) UploadServerCertificate(name, path, body, pk string, optionalChain *string) (*ServerCertificateMetadata, error)
- type Provider
- type Role
- type ServerCertificateMetadata
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IAM ¶
type IAM struct { Connect func() (iamInternal, error) // contains filtered or unexported fields }
func (*IAM) CreateRole ¶
func (*IAM) DeleteRole ¶
func (*IAM) DeleteRolePolicy ¶
func (*IAM) DeleteServerCertificate ¶
func (*IAM) GetAccountId ¶
func (*IAM) ListCertificates ¶
func (this *IAM) ListCertificates() ([]*ServerCertificateMetadata, error)
func (*IAM) ListRolePolicies ¶
func (*IAM) PutRolePolicy ¶
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) }
type ServerCertificateMetadata ¶
type ServerCertificateMetadata struct {
*iam.ServerCertificateMetadata
}
func NewServerCertificateMetadata ¶
func NewServerCertificateMetadata(name, arn string) *ServerCertificateMetadata
Click to show internal directories.
Click to hide internal directories.