azure

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 DefaultAzurePath = "azure"

Variables

This section is empty.

Functions

func GetAzurePath

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

Types

type AzureRole

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

func (*AzureRole) CreateConfig

func (a *AzureRole) CreateConfig() error

Writes the config file to specified path

func (*AzureRole) CreateRole

func (a *AzureRole) CreateRole() error

Creates role

func (*AzureRole) DeleteRole

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

DeleteRole deletes role It's safe to call multiple time. It doesn't give error even if respective role doesn't exist

func (*AzureRole) EnableAzure

func (a *AzureRole) EnableAzure() error

EnableAzure enables azure secret engine It first checks whether azure is enabled or not

func (*AzureRole) IsAzureEnabled

func (a *AzureRole) IsAzureEnabled() (bool, error)

checks whether azure is enabled or not

type AzureRoleInterface

type AzureRoleInterface interface {
	role.RoleInterface

	// Enable enables azure secret engine
	EnableAzure() error

	// IsAzureEnabled checks whether azure is enabled or not
	IsAzureEnabled() (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