Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, req *vzmgrpb.CreateDeploymentKeyRequest) (*vzmgrpb.DeploymentKey, error)
- func (s *Service) Delete(ctx context.Context, req *vzmgrpb.DeleteDeploymentKeyRequest) (*types.Empty, error)
- func (s *Service) FetchOrgUserIDUsingDeploymentKey(ctx context.Context, key string) (uuid.UUID, uuid.UUID, uuid.UUID, error)
- func (s *Service) Get(ctx context.Context, req *vzmgrpb.GetDeploymentKeyRequest) (*vzmgrpb.GetDeploymentKeyResponse, error)
- func (s *Service) List(ctx context.Context, req *vzmgrpb.ListDeploymentKeyRequest) (*vzmgrpb.ListDeploymentKeyResponse, error)
- func (s *Service) LookupDeploymentKey(ctx context.Context, req *vzmgrpb.LookupDeploymentKeyRequest) (*vzmgrpb.LookupDeploymentKeyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is used to provision and manage deployment keys.
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, req *vzmgrpb.CreateDeploymentKeyRequest) (*vzmgrpb.DeploymentKey, error)
Create a key with the org/user as an owner.
func (*Service) Delete ¶
func (s *Service) Delete(ctx context.Context, req *vzmgrpb.DeleteDeploymentKeyRequest) (*types.Empty, error)
Delete will remove the key.
func (*Service) FetchOrgUserIDUsingDeploymentKey ¶
func (s *Service) FetchOrgUserIDUsingDeploymentKey(ctx context.Context, key string) (uuid.UUID, uuid.UUID, uuid.UUID, error)
FetchOrgUserIDUsingDeploymentKey gets the org and user ID based on the deployment key.
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, req *vzmgrpb.GetDeploymentKeyRequest) (*vzmgrpb.GetDeploymentKeyResponse, error)
Get returns a specific key if it's owned by the org.
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *vzmgrpb.ListDeploymentKeyRequest) (*vzmgrpb.ListDeploymentKeyResponse, error)
List returns all the keys belonging to an org.
func (*Service) LookupDeploymentKey ¶
func (s *Service) LookupDeploymentKey(ctx context.Context, req *vzmgrpb.LookupDeploymentKeyRequest) (*vzmgrpb.LookupDeploymentKeyResponse, error)
LookupDeploymentKey gets the complete Deployment key information using just the Key.
Click to show internal directories.
Click to hide internal directories.