Documentation ¶
Index ¶
- Constants
- func IsEmpty(input string) bool
- func NotEmpty(input string) error
- func Optional(_ string) error
- type DockerHub
- type FuzzyFinder
- type HTTPClient
- func (h *HTTPClient) BuildData(parameters map[string]string) string
- func (h *HTTPClient) Delete(ctx context.Context, endpoint string, parameters, headers map[string]string) (*http.Response, error)
- func (h *HTTPClient) Get(ctx context.Context, endpoint string, parameters, headers map[string]string) (*http.Response, error)
- func (h *HTTPClient) GetHeaderValue(response *http.Response, key string) string
- func (h *HTTPClient) GetStatusCode(response *http.Response) int
- func (h *HTTPClient) Patch(ctx context.Context, endpoint string, data string, ...) (*http.Response, error)
- func (h *HTTPClient) Post(ctx context.Context, endpoint string, data string, ...) (*http.Response, error)
- func (h *HTTPClient) Put(ctx context.Context, endpoint string, data string, ...) (*http.Response, error)
- func (h *HTTPClient) ToString(response *http.Response) (string, error)
- type Prometheus
- type Prompt
- type TagsResponse
Constants ¶
View Source
const DockerHubAPI = "https://registry.hub.docker.com/v2/"
DockerHubAPI const
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerHub ¶ added in v0.2.1
type DockerHub struct {
// contains filtered or unexported fields
}
DockerHub struct
func NewDockerHub ¶ added in v0.2.1
func NewDockerHub(httpClient *HTTPClient) *DockerHub
NewDockerHub creates an instance of http client
type FuzzyFinder ¶ added in v0.1.23
type FuzzyFinder struct{}
FuzzyFinder type
func (*FuzzyFinder) Available ¶ added in v0.1.23
func (f *FuzzyFinder) Available() bool
Available validates if fzf installed
type HTTPClient ¶
HTTPClient struct
func NewHTTPClient ¶
func NewHTTPClient(timeout int) *HTTPClient
NewHTTPClient creates an instance of http client
func (*HTTPClient) BuildData ¶
func (h *HTTPClient) BuildData(parameters map[string]string) string
BuildData build body data
func (*HTTPClient) Delete ¶
func (h *HTTPClient) Delete(ctx context.Context, endpoint string, parameters, headers map[string]string) (*http.Response, error)
Delete http call
func (*HTTPClient) Get ¶
func (h *HTTPClient) Get(ctx context.Context, endpoint string, parameters, headers map[string]string) (*http.Response, error)
Get http call
func (*HTTPClient) GetHeaderValue ¶
func (h *HTTPClient) GetHeaderValue(response *http.Response, key string) string
GetHeaderValue get response header value
func (*HTTPClient) GetStatusCode ¶
func (h *HTTPClient) GetStatusCode(response *http.Response) int
GetStatusCode response status code
func (*HTTPClient) Patch ¶
func (h *HTTPClient) Patch(ctx context.Context, endpoint string, data string, parameters, headers map[string]string) (*http.Response, error)
Patch http call
func (*HTTPClient) Post ¶
func (h *HTTPClient) Post(ctx context.Context, endpoint string, data string, parameters, headers map[string]string) (*http.Response, error)
Post http call
type Prometheus ¶ added in v0.1.1
type Prometheus struct{}
Prometheus struct
func NewPrometheus ¶ added in v0.1.1
func NewPrometheus() *Prometheus
NewPrometheus create a new instance of prometheus backend
func (*Prometheus) Counter ¶ added in v0.1.1
func (p *Prometheus) Counter(item model.Metric) error
Counter updates or creates a counter
func (*Prometheus) Gauge ¶ added in v0.1.1
func (p *Prometheus) Gauge(item model.Metric) error
Gauge updates or creates a gauge
func (*Prometheus) Histogram ¶ added in v0.1.1
func (p *Prometheus) Histogram(item model.Metric) error
Histogram updates or creates a histogram
type Prompt ¶ added in v0.1.23
type Prompt struct { }
Prompt struct
type TagsResponse ¶ added in v0.2.1
type TagsResponse struct { Results []struct { ID int `json:"id"` Name string `json:"name"` } `json:"results"` }
TagsResponse type
func (*TagsResponse) ConvertToJSON ¶ added in v0.2.1
func (t *TagsResponse) ConvertToJSON() (string, error)
ConvertToJSON convert object to json
func (*TagsResponse) LoadFromJSON ¶ added in v0.2.1
func (t *TagsResponse) LoadFromJSON(data []byte) error
LoadFromJSON update object from json
Click to show internal directories.
Click to hide internal directories.