Documentation ¶
Index ¶
- func NewHTTPClient(opts ...ClientOption) *http.Client
- type AppClient
- type Client
- type ClientOption
- type HTTPError
- type Job
- type JobClient
- func (c *JobClient) Create(args *spec.CreateJobArgs) (*Job, error)
- func (c *JobClient) Delete(name string) error
- func (c *JobClient) Get(name string) (*Job, error)
- func (c *JobClient) List() ([]*Job, error)
- func (c *JobClient) Logs(name string, podname string, cluster string, follow bool) (chan interface{}, error)
- func (c *JobClient) Upload(jobname string, values map[string]io.Reader, respBody interface{}) (err error)
- func (c *JobClient) UploadArtifact(jobname string, filename string, objKey string) (objUrl string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(opts ...ClientOption) *http.Client
NewHTTPClient initializes an http.Client
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientFromHTTP ¶
NewClientFromHTTP takes in an http.Client instance
func (Client) FullWebsocketUrl ¶
type ClientOption ¶
type ClientOption = func(http.RoundTripper) http.RoundTripper
ClientOption represents an argument to NewClient
Click to show internal directories.
Click to hide internal directories.