Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the remote API client.
func NewClient ¶
NewClient returns a remote API client that can be used for issuing API calls to the master enforcer.
func (*Client) Issue ¶
func (c *Client) Issue(ctx context.Context, contextID string, stype common.ServiceTokenType, audience string, validity time.Duration) (string, error)
Issue implements the ServiceTokenIssuer interface.
type TokenClient ¶
type TokenClient interface { Run(ctx context.Context) error Issue(ctx context.Context, contextID string, stype common.ServiceTokenType, audience string, validity time.Duration) (string, error) }
TokenClient interface provides a start function. the client is used to request tokens.
Directories ¶
Path | Synopsis |
---|---|
Package mocktokenclient is a generated GoMock package.
|
Package mocktokenclient is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.