Documentation ¶
Index ¶
Constants ¶
View Source
const ( GCPSecretType string = "secret_type" GCPOAuthTokenScopes string = "token_scopes" )
View Source
const DefaultGCPPath = "gcp"
Variables ¶
This section is empty.
Functions ¶
func GetGCPPath ¶
func GetGCPPath(c appcat_cs.AppcatalogV1alpha1Interface, ref *appcat.AppReference) (string, error)
If gcp path does not exist, then use default gcp path
Types ¶
type GCPRole ¶
type GCPRole struct {
// contains filtered or unexported fields
}
func (*GCPRole) CreateConfig ¶
https://www.vaultproject.io/api/secret/gcp/index.html#write-config Writes the config file to specified path
func (*GCPRole) CreateRole ¶
Links: - https://www.vaultproject.io/api/secret/gcp/index.html#create-update-roleset Creates roleset
func (*GCPRole) DeleteRole ¶
DeleteRole deletes role It's safe to call multiple time. It doesn't give error even if respective role doesn't exist
func (*GCPRole) EnableGCP ¶
EnableGCP enables gcp secret engine It first checks whether gcp is enabled or not
func (*GCPRole) IsGCPEnabled ¶
checks whether gcp is enabled or not
type GCPRoleInterface ¶
type GCPRoleInterface interface { role.RoleInterface // Enable enables gcp secret engine EnableGCP() error // IsGCPEnabled checks whether gcp is enabled or not IsGCPEnabled() (bool, error) // DeleteRole deletes role DeleteRole(name string) error }
func NewGCPRole ¶
func NewGCPRole(kClient kubernetes.Interface, appClient appcat_cs.AppcatalogV1alpha1Interface, role *api.GCPRole) (GCPRoleInterface, error)
Click to show internal directories.
Click to hide internal directories.