Documentation ¶
Index ¶
- Constants
- type BundleError
- type BundleState
- type JWTAuthRequest
- type JWTAuthResponse
- type RESTClient
- func (r *RESTClient) Download(url string, path string) (string, error)
- func (r *RESTClient) Get(url string) ([]byte, error)
- func (r *RESTClient) Login() error
- func (r *RESTClient) Logout() error
- func (r *RESTClient) Post(url string, data []byte) ([]byte, error)
- func (r *RESTClient) Request(method string, url string, data []byte) ([]byte, error)
- type SupportBundleClient
- type SupportBundleInitateInput
- type SupportBundleResource
Constants ¶
View Source
const ( BundleStateInProgress = BundleState("InProgress") BundleStateReadyForDownload = BundleState("ReadyForDownload") BundleStateError = BundleState("Error") )
View Source
const ( HarvesterURLAuthLogin = "/v1-public/auth?action=login" HarvesterURLAuthLogout = "/v1-public/auth?action=logout" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleError ¶
type BundleError string
type BundleState ¶
type BundleState string
type JWTAuthRequest ¶
type JWTAuthResponse ¶
type JWTAuthResponse struct {
JWEToken string `json:"jweToken"`
}
type RESTClient ¶
type RESTClient struct {
// contains filtered or unexported fields
}
func NewRESTClient ¶
func (*RESTClient) Download ¶
func (r *RESTClient) Download(url string, path string) (string, error)
func (*RESTClient) Login ¶
func (r *RESTClient) Login() error
func (*RESTClient) Logout ¶
func (r *RESTClient) Logout() error
type SupportBundleClient ¶
type SupportBundleClient struct { User string Password string NoAuth bool OutputFile string Insecure bool IssueURL string IssueDescription string // contains filtered or unexported fields }
func (*SupportBundleClient) Run ¶
func (c *SupportBundleClient) Run(url string) error
type SupportBundleResource ¶
type SupportBundleResource struct { PodID string `json:"podID"` NodeID string `json:"nodeID"` State BundleState `json:"state"` Name string `json:"name"` ErrorMessage BundleError `json:"errorMessage"` ProgressPercentage int `json:"progressPercentage"` }
func (*SupportBundleResource) BackendID ¶
func (sbr *SupportBundleResource) BackendID() string
Click to show internal directories.
Click to hide internal directories.