aws

package
v0.0.0-...-85ffd96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAWSPath = "aws"

Variables

This section is empty.

Functions

func GetAWSPath

If aws path does not exist, then use default aws path

Types

type AWSRole

type AWSRole struct {
	// contains filtered or unexported fields
}

func (*AWSRole) DeleteRole

func (a *AWSRole) DeleteRole(name string) error

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

func (a *AWSRole) EnableAWS() error

EnableAWS enables aws secret engine It first checks whether aws is enabled or not

func (*AWSRole) IsAWSEnabled

func (a *AWSRole) IsAWSEnabled() (bool, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL