Documentation ¶
Index ¶
- Variables
- func NewTemplateList() template.Template
- type SecretData
- type VaultUsercase
- func (uc *VaultUsercase) CreateRole(ctx context.Context, req *pb.AuthroleRequest) error
- func (uc *VaultUsercase) CreateSecret(ctx context.Context, req pb.SecRequest) (*SecretData, error)
- func (uc *VaultUsercase) DeleteRole(ctx context.Context, req *pb.AuthroleRequest) error
- func (uc *VaultUsercase) DeleteSecret(ctx context.Context, req pb.SecRequest) error
- func (uc *VaultUsercase) DisableAuth(ctx context.Context, req *pb.AuthRequest) error
- func (uc *VaultUsercase) EnableAuth(ctx context.Context, req *pb.AuthRequest) error
- func (uc *VaultUsercase) GetAuth(ctx context.Context, authName string) (map[string]interface{}, error)
- func (uc *VaultUsercase) GrantPermision(ctx context.Context, req pb.AuthGrantRequest) error
- func (uc *VaultUsercase) Health() bool
- func (uc *VaultUsercase) RevokePermision(ctx context.Context, req pb.AuthGrantRequest) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewVaultUsercase)
Functions ¶
func NewTemplateList ¶
Types ¶
type SecretData ¶
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) 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
Click to show internal directories.
Click to hide internal directories.