Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAWSPath = "aws"
Variables ¶
This section is empty.
Functions ¶
func GetAWSPath ¶
func GetAWSPath(c appcat_cs.AppcatalogV1alpha1Interface, ref *appcat.AppReference) (string, error)
If aws path does not exist, then use default aws path
Types ¶
type AWSRole ¶
type AWSRole struct {
// contains filtered or unexported fields
}
func (*AWSRole) CreateConfig ¶
https://www.vaultproject.io/api/secret/aws/index.html#configure-root-iam-credentials
func (*AWSRole) CreateRole ¶
https://www.vaultproject.io/api/secret/aws/index.html#create-update-role
func (*AWSRole) DeleteRole ¶
https://www.vaultproject.io/api/secret/aws/index.html#delete-role
DeleteRole deletes role It's safe to call multiple time. It doesn't give error even if respective role doesn't exist
func (*AWSRole) EnableAWS ¶
EnableAWS enables aws secret engine It first checks whether aws is enabled or not
func (*AWSRole) IsAWSEnabled ¶
checks whether aws is enabled or not
type AWSRoleInterface ¶
type AWSRoleInterface interface { role.RoleInterface // Enable enables aws secret engine EnableAWS() error // IsAWSEnabled checks whether aws is enabled or not IsAWSEnabled() (bool, error) // DeleteRole deletes role DeleteRole(name string) error }
func NewAWSRole ¶
func NewAWSRole(kClient kubernetes.Interface, appClient appcat_cs.AppcatalogV1alpha1Interface, role *api.AWSRole) (AWSRoleInterface, error)
Click to show internal directories.
Click to hide internal directories.