Documentation
¶
Index ¶
- Constants
- func DownloadCredentialRequests(version string, cloud CloudSpec) (string, error)
- func GetAWSProviderSpec(credReq *cco.CredentialsRequest) (*cco.AWSProviderSpec, error)
- func GetGcpProviderSpec(credReq *cco.CredentialsRequest) (*cco.GCPProviderSpec, error)
- func ParseCredentialsRequestsInDir(dir string) ([]*cco.CredentialsRequest, error)
- type CloudSpec
- type CredentialRequest
- type PolicyDocument
- type Role
- type SecretRef
- type ServiceAccount
- type WifTemplate
Constants ¶
View Source
const GCPRoleIDPrefix = "roles/"
Variables ¶
This section is empty.
Functions ¶
func DownloadCredentialRequests ¶
DownloadCredentialRequests creates a temp directory and extracts credential request manifests from a given release payload
func GetAWSProviderSpec ¶
func GetAWSProviderSpec(credReq *cco.CredentialsRequest) (*cco.AWSProviderSpec, error)
func GetGcpProviderSpec ¶
func GetGcpProviderSpec(credReq *cco.CredentialsRequest) (*cco.GCPProviderSpec, error)
func ParseCredentialsRequestsInDir ¶
func ParseCredentialsRequestsInDir(dir string) ([]*cco.CredentialsRequest, error)
Types ¶
type CloudSpec ¶
type CloudSpec int
type CredentialRequest ¶
type PolicyDocument ¶
type PolicyDocument struct { Version string Statement []cco.StatementEntry }
func AWSCredentialsRequestToPolicyDocument ¶
func AWSCredentialsRequestToPolicyDocument(credReq *cco.CredentialsRequest) (*PolicyDocument, error)
type ServiceAccount ¶
type ServiceAccount struct { AccessMethod string `json:"access_method,omitempty"` CredentialRequest CredentialRequest `json:"credential_request,omitempty"` Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` OsdRole string `json:"osd_role,omitempty"` Roles []Role `json:"roles,omitempty"` }
func CredentialsRequestToWifServiceAccount ¶
func CredentialsRequestToWifServiceAccount(credReq *cco.CredentialsRequest) (*ServiceAccount, error)
func (ServiceAccount) GetId ¶
func (s ServiceAccount) GetId() string
func (ServiceAccount) GetSecretName ¶
func (s ServiceAccount) GetSecretName() string
func (ServiceAccount) GetSecretNamespace ¶
func (s ServiceAccount) GetSecretNamespace() string
func (ServiceAccount) GetServiceAccountNames ¶
func (s ServiceAccount) GetServiceAccountNames() []string
type WifTemplate ¶
type WifTemplate struct { Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` ServiceAccounts []ServiceAccount `json:"service_accounts,omitempty"` }
Click to show internal directories.
Click to hide internal directories.