tokens

package
v0.0.0-...-6794c67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL