Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) CreateCredential(ctx context.Context, req *pbs.CreateCredentialRequest) (*pbs.CreateCredentialResponse, error)
- func (s Service) DeleteCredential(ctx context.Context, req *pbs.DeleteCredentialRequest) (*pbs.DeleteCredentialResponse, error)
- func (s Service) GetCredential(ctx context.Context, req *pbs.GetCredentialRequest) (*pbs.GetCredentialResponse, error)
- func (s Service) ListCredentials(ctx context.Context, req *pbs.ListCredentialsRequest) (*pbs.ListCredentialsResponse, error)
- func (s Service) UpdateCredential(ctx context.Context, req *pbs.UpdateCredentialRequest) (*pbs.UpdateCredentialResponse, 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.UnsafeCredentialServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.CredentialServiceServer interface.
func NewService ¶
func NewService(repo common.StaticCredentialRepoFactory, iamRepo common.IamRepoFactory) (Service, error)
NewService returns a credential service which handles credential related requests to boundary.
func (Service) CreateCredential ¶
func (s Service) CreateCredential(ctx context.Context, req *pbs.CreateCredentialRequest) (*pbs.CreateCredentialResponse, error)
CreateCredential implements the interface pbs.CredentialServiceServer.
func (Service) DeleteCredential ¶
func (s Service) DeleteCredential(ctx context.Context, req *pbs.DeleteCredentialRequest) (*pbs.DeleteCredentialResponse, error)
DeleteCredential implements the interface pbs.CredentialServiceServer.
func (Service) GetCredential ¶
func (s Service) GetCredential(ctx context.Context, req *pbs.GetCredentialRequest) (*pbs.GetCredentialResponse, error)
GetCredential implements the interface pbs.CredentialServiceServer.
func (Service) ListCredentials ¶
func (s Service) ListCredentials(ctx context.Context, req *pbs.ListCredentialsRequest) (*pbs.ListCredentialsResponse, error)
ListCredentials implements the interface pbs.CredentialServiceServer
func (Service) UpdateCredential ¶
func (s Service) UpdateCredential(ctx context.Context, req *pbs.UpdateCredentialRequest) (*pbs.UpdateCredentialResponse, error)
UpdateCredential implements the interface pbs.CredentialServiceServer.
Click to show internal directories.
Click to hide internal directories.