Documentation ¶
Index ¶
- type Client
- type IAM
- type IAMService
- func (iams *IAMService) CreateSA(request *iam.CreateServiceAccountRequest, projectname string) (*iam.ServiceAccount, error)
- func (iams *IAMService) CreateSAKey(sa string, request *iam.CreateServiceAccountKeyRequest) (*iam.ServiceAccountKey, error)
- func (iams *IAMService) DeleteSA(sa string) (*iam.Empty, error)
- type ServiceAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides data and methods for serviceaccount package.
func (*Client) CreateSA ¶
Creates GKE Service Account. SA name is trimed to 30 characters per GCP limits.
func (*Client) CreateSAKey ¶
safqdn should be serviceaccount mail. Pass here iam.ServiceAccount.Email returned by Client.CreateSA().
type IAM ¶
type IAM interface { //TODO: Swap arguments order to match iam service method arguments order. CreateSA(request *iam.CreateServiceAccountRequest, projectname string) (*iam.ServiceAccount, error) CreateSAKey(sa string, request *iam.CreateServiceAccountKeyRequest) (*iam.ServiceAccountKey, error) DeleteSA(sa string) (*iam.Empty, error) }
IAM is a mockable interface for GCP IAM API.
type IAMService ¶
type IAMService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(credentials string) (*IAMService, error)
func (*IAMService) CreateSA ¶
func (iams *IAMService) CreateSA(request *iam.CreateServiceAccountRequest, projectname string) (*iam.ServiceAccount, error)
func (*IAMService) CreateSAKey ¶
func (iams *IAMService) CreateSAKey(sa string, request *iam.CreateServiceAccountKeyRequest) (*iam.ServiceAccountKey, error)
func (*IAMService) DeleteSA ¶
func (iams *IAMService) DeleteSA(sa string) (*iam.Empty, error)
type ServiceAccount ¶
Click to show internal directories.
Click to hide internal directories.