vaultproxy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewTemplateList

func NewTemplateList() template.Template

Types

type SecretData

type SecretData struct {
	SecretName    string
	SecretPath    string
	SecretVersion int
}

type VaultUsercase

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

func NewVaultUsercase

func NewVaultUsercase(client vpData.VaultClientInterface, cfg *conf.Server, logger log.Logger) *VaultUsercase

func (*VaultUsercase) CreateRole

func (uc *VaultUsercase) CreateRole(ctx context.Context, req *pb.AuthroleRequest) error

func (*VaultUsercase) CreateSecret

func (uc *VaultUsercase) CreateSecret(ctx context.Context, req pb.SecRequest) (*SecretData, error)

func (*VaultUsercase) DeleteRole

func (uc *VaultUsercase) DeleteRole(ctx context.Context, req *pb.AuthroleRequest) error

func (*VaultUsercase) DeleteSecret

func (uc *VaultUsercase) DeleteSecret(ctx context.Context, req pb.SecRequest) error

func (*VaultUsercase) DisableAuth

func (uc *VaultUsercase) DisableAuth(ctx context.Context, req *pb.AuthRequest) error

func (*VaultUsercase) EnableAuth

func (uc *VaultUsercase) EnableAuth(ctx context.Context, req *pb.AuthRequest) error

func (*VaultUsercase) GetAuth

func (uc *VaultUsercase) GetAuth(ctx context.Context, authName string) (map[string]interface{}, error)

func (*VaultUsercase) GrantPermision

func (uc *VaultUsercase) GrantPermision(ctx context.Context, req pb.AuthGrantRequest) error

func (*VaultUsercase) Health

func (uc *VaultUsercase) Health() bool

func (*VaultUsercase) RevokePermision

func (uc *VaultUsercase) RevokePermision(ctx context.Context, req pb.AuthGrantRequest) error

Jump to

Keyboard shortcuts

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