Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { LoginClient DownloadClient Status(ctx context.Context) (StatusSpec, error) }
type DownloadClient ¶
type DownloadClient interface { DownloadPatchManifest(ctx context.Context) (PatchManifest, error) DownloadFile(ctx context.Context, name string) (io.ReadCloser, error) }
type LoginClient ¶
type LoginClient interface { Login(ctx context.Context, username, password string) (*LoginResponse, error) RetryDelayedLogin(ctx context.Context, queueToken string) (*LoginResponse, error) CompleteTwoFactorAuth(ctx context.Context, responseToken, code string) (*LoginResponse, error) }
type LoginPartialSuccessPayload ¶
type LoginPartialSuccessPayload struct {
ResponseToken string `json:"responseToken,omitempty"`
}
type LoginResponse ¶
type LoginResponse struct { Success SuccessKind `json:"success"` Message string `json:"banner"` // Will be set if success == "true" *LoginSuccessPayload `json:",inline,omitempty"` // Will be set if success == "partial" *LoginPartialSuccessPayload `json:",inline,omitempty"` // Will be set if success == "delayed" *LoginDelayedSuccessPayload `json:",inline,omitempty"` }
type LoginSuccessPayload ¶
type ManifestEntry ¶
type PatchManifest ¶
type PatchManifest map[string]*ManifestEntry
type StatusSpec ¶
type SuccessKind ¶
type SuccessKind string
const ( SuccessTrue SuccessKind = "true" SuccessFalse SuccessKind = "false" SuccessPartial SuccessKind = "partial" SuccessDelayed SuccessKind = "delayed" )
Click to show internal directories.
Click to hide internal directories.