Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) CreateCredentialLibrary(ctx context.Context, req *pbs.CreateCredentialLibraryRequest) (*pbs.CreateCredentialLibraryResponse, error)
- func (s Service) DeleteCredentialLibrary(ctx context.Context, req *pbs.DeleteCredentialLibraryRequest) (*pbs.DeleteCredentialLibraryResponse, error)
- func (s Service) GetCredentialLibrary(ctx context.Context, req *pbs.GetCredentialLibraryRequest) (*pbs.GetCredentialLibraryResponse, error)
- func (s Service) ListCredentialLibraries(ctx context.Context, req *pbs.ListCredentialLibrariesRequest) (*pbs.ListCredentialLibrariesResponse, error)
- func (s Service) UpdateCredentialLibrary(ctx context.Context, req *pbs.UpdateCredentialLibraryRequest) (*pbs.UpdateCredentialLibraryResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IdActions contains the set of actions that can be performed on // individual resources IdActions = action.ActionSet{ action.NoOp, action.Read, action.Update, action.Delete, } // CollectionActions contains the set of actions that can be performed on // this collection CollectionActions = action.ActionSet{ action.Create, action.List, } )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pbs.UnsafeCredentialLibraryServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.CredentialLibraryServiceServer interface.
func NewService ¶
func NewService(repo common.VaultCredentialRepoFactory, iamRepo common.IamRepoFactory) (Service, error)
NewService returns a credential library service which handles credential library related requests to boundary.
func (Service) CreateCredentialLibrary ¶
func (s Service) CreateCredentialLibrary(ctx context.Context, req *pbs.CreateCredentialLibraryRequest) (*pbs.CreateCredentialLibraryResponse, error)
CreateCredentialLibrary implements the interface pbs.CredentialLibraryServiceServer.
func (Service) DeleteCredentialLibrary ¶
func (s Service) DeleteCredentialLibrary(ctx context.Context, req *pbs.DeleteCredentialLibraryRequest) (*pbs.DeleteCredentialLibraryResponse, error)
DeleteCredentialLibrary implements the interface pbs.CredentialLibraryServiceServer.
func (Service) GetCredentialLibrary ¶
func (s Service) GetCredentialLibrary(ctx context.Context, req *pbs.GetCredentialLibraryRequest) (*pbs.GetCredentialLibraryResponse, error)
GetCredentialLibrary implements the interface pbs.CredentialLibraryServiceServer.
func (Service) ListCredentialLibraries ¶
func (s Service) ListCredentialLibraries(ctx context.Context, req *pbs.ListCredentialLibrariesRequest) (*pbs.ListCredentialLibrariesResponse, error)
ListCredentialLibraries implements the interface pbs.CredentialLibraryServiceServer
func (Service) UpdateCredentialLibrary ¶
func (s Service) UpdateCredentialLibrary(ctx context.Context, req *pbs.UpdateCredentialLibraryRequest) (*pbs.UpdateCredentialLibraryResponse, error)
UpdateCredentialLibrary implements the interface pbs.CredentialLibraryServiceServer.
Click to show internal directories.
Click to hide internal directories.