Documentation ¶
Index ¶
- type Server
- func (s *Server) CreateToken(ctx context.Context, in *pb_req.CreateTokenReq) (*pb_resp.CreateTokenResp, error)
- func (s *Server) DeleteToken(ctx context.Context, req *pb_req.DeleteTokenReq) (*pb_resp.DeleteTokenResp, error)
- func (s *Server) GetToken(ctx context.Context, in *pb_req.GetTokenReq) (*pb_resp.GetTokenResp, error)
- func (s *Server) ListTokens(ctx context.Context, _ *pb_req.ListTokensReq) (*pb_resp.ListTokensResp, error)
- func (s *Server) UpdateToken(ctx context.Context, req *pb_req.UpdateTokenReq) (*pb_resp.UpdateTokenResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the server interface
func NewServer ¶
func NewServer(client authn.TokensMgmtServiceClient) *Server
NewServer creates a server with its client.
func (*Server) CreateToken ¶
func (s *Server) CreateToken( ctx context.Context, in *pb_req.CreateTokenReq) (*pb_resp.CreateTokenResp, error)
CreateToken creates a new token.
func (*Server) DeleteToken ¶
func (s *Server) DeleteToken( ctx context.Context, req *pb_req.DeleteTokenReq) (*pb_resp.DeleteTokenResp, error)
DeleteToken deletes a token by ID
func (*Server) GetToken ¶
func (s *Server) GetToken( ctx context.Context, in *pb_req.GetTokenReq) (*pb_resp.GetTokenResp, error)
GetToken retrieves a token by id
func (*Server) ListTokens ¶
func (s *Server) ListTokens( ctx context.Context, _ *pb_req.ListTokensReq) (*pb_resp.ListTokensResp, error)
ListTokens returns an array of tokens
func (*Server) UpdateToken ¶
func (s *Server) UpdateToken( ctx context.Context, req *pb_req.UpdateTokenReq) (*pb_resp.UpdateTokenResp, error)
UpdateToken uses a token ID to update the Name/Active fields only
Click to show internal directories.
Click to hide internal directories.