utils

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVaultPolicy

func CreateVaultPolicy(client *api.Client, policyName, keyName string) error

func CreateVaultToken

func CreateVaultToken(cli *api.Client, name string, params map[string]interface{}) (string, error)

func CreateVaultTransitKey

func CreateVaultTransitKey(cli *api.Client, prefix, name string, params, configParams map[string]interface{}) error

func ParseEndpoint

func ParseEndpoint(ep string) (proto, address string, err error)

ParseEndpoint returns unix socket's protocol and address

func RotateVaultTransitKey

func RotateVaultTransitKey(cli *api.Client, prefix, name string, params, configParams map[string]interface{}) error

func UnaryServerInterceptor

func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

UnaryServerInterceptor provides metrics around Unary RPCs.

Types

type AppRoleCredentials

type AppRoleCredentials struct {
	SecretID string
	RoleID   string
}

func CreateVaultAppRole

func CreateVaultAppRole(cli *api.Client, prefix, name string, params map[string]interface{}) (*AppRoleCredentials, error)

Jump to

Keyboard shortcuts

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