Documentation ¶
Index ¶
Constants ¶
const EnvProviderName = "EnvConfigCredentials"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
The main api client
func New ¶
func New(cfgs ...*checkpoint.Config) (*Client, error)
Create a new client from a list of config objects
func (*Client) Logout ¶
func (c *Client) Logout() (*request.MessageResponse, error)
Logout the user. Do not check the session.
func (*Client) ResetSession ¶
func (c *Client) ResetSession()
Reset a session and ensure that the session will not be reused
type DefaultRetryer ¶
type DefaultRetryer struct {
NumMaxRetries int
}
DefaultRetryer implements basic retry logic using exponential backoff for most services.
func (DefaultRetryer) MaxRetries ¶
func (d DefaultRetryer) MaxRetries() int
MaxRetries returns the number of maximum returns the service will use to make an individual API request.
func (DefaultRetryer) RetryRules ¶
func (d DefaultRetryer) RetryRules(r *request.Request) time.Duration
RetryRules returns the delay duration before retrying this request again
func (DefaultRetryer) ShouldRetry ¶
func (d DefaultRetryer) ShouldRetry(r *request.Request) bool
ShouldRetry returns true if the request should be retried.
type LastLoginResponse ¶
type LoginInput ¶
type LoginInput struct { User string `json:"user"` Password string `json:"password"` SessionName string `json:"session-name"` SessionTimeout int64 `json:"session-timeout"` ContinueLastSession bool `json:"continue-last-session"` }
Describes the input parameters for the login request
type LoginResponse ¶
type LoginResponse struct { Uid string `json:"uid"` Sid string `json:"sid"` Url string `json:"url"` ExpiresIn int64 `json:"session-timeout"` LastLogin *LastLoginResponse `json:"last-login-was-at"` Version string `json:"api-server-version"` }
Describes the response parameters returned by a login request
type PublishInput ¶
type PublishInput struct{}
Describes the input parameters for the publish request
type PublishResponse ¶
type PublishResponse struct {
TaskId string `json:"task-id"`
}
Describes the response parameters returned by a publish request