Documentation
¶
Index ¶
- Constants
- type CSRPayload
- type CertResponseContent
- type CertResponsePayload
- type Client
- func (cli *Client) ProvisionAccessToken(ctx context.Context, authConf config.ConfigAuth) (oauth2.Token, error)
- func (cli *Client) ProvisionReleaseServiceToken(ctx context.Context, authConf config.ConfigAuth, accessToken string) (oauth2.Token, error)
- func (cli *Client) ProvisionToken(ctx context.Context, authConf config.ConfigAuth, ...) (oauth2.Token, error)
Constants ¶
View Source
const EARLYEXPIRY = 15 * time.Minute
View Source
const TIMEOUT = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRPayload ¶
type CSRPayload struct {
Csr []byte `json:"csr"`
}
type CertResponseContent ¶
type CertResponseContent struct {
Cert string `json:"certificate"`
}
type CertResponsePayload ¶
type CertResponsePayload struct {
Success CertResponseContent `json:"success"`
}
type Client ¶
func GetAuthCli ¶
func (*Client) ProvisionAccessToken ¶
func (*Client) ProvisionReleaseServiceToken ¶
func (*Client) ProvisionToken ¶
func (cli *Client) ProvisionToken(ctx context.Context, authConf config.ConfigAuth, tknClient auth.ClientAuthToken) (oauth2.Token, error)
Click to show internal directories.
Click to hide internal directories.