flux: github.com/weaveworks/flux/pkg/http/client Index | Files

package client

import "github.com/weaveworks/flux/pkg/http/client"


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

func New Uses

func New(c *http.Client, router *mux.Router, endpoint string, t Token) *Client

func (*Client) Export Uses

func (c *Client) Export(ctx context.Context) ([]byte, error)

func (*Client) Get Uses

func (c *Client) Get(ctx context.Context, dest interface{}, route string, queryParams ...string) error

Get executes a get request against the Flux server. it unmarshals the response into dest, if not nil.

func (*Client) GitRepoConfig Uses

func (c *Client) GitRepoConfig(ctx context.Context, regenerate bool) (v6.GitConfig, error)

func (*Client) JobStatus Uses

func (c *Client) JobStatus(ctx context.Context, jobID job.ID) (job.Status, error)

func (*Client) ListImages Uses

func (c *Client) ListImages(ctx context.Context, s update.ResourceSpec) ([]v6.ImageStatus, error)

func (*Client) ListImagesWithOptions Uses

func (c *Client) ListImagesWithOptions(ctx context.Context, opts v10.ListImagesOptions) ([]v6.ImageStatus, error)

func (*Client) ListServices Uses

func (c *Client) ListServices(ctx context.Context, namespace string) ([]v6.ControllerStatus, error)

func (*Client) ListServicesWithOptions Uses

func (c *Client) ListServicesWithOptions(ctx context.Context, opts v11.ListServicesOptions) ([]v6.ControllerStatus, error)

func (*Client) LogEvent Uses

func (c *Client) LogEvent(ctx context.Context, event event.Event) error

func (*Client) NotifyChange Uses

func (c *Client) NotifyChange(ctx context.Context, change v9.Change) error

func (*Client) PatchWithBody Uses

func (c *Client) PatchWithBody(ctx context.Context, route string, body interface{}, queryParams ...string) error

func (*Client) Ping Uses

func (c *Client) Ping(ctx context.Context) error

func (*Client) Post Uses

func (c *Client) Post(ctx context.Context, route string, queryParams ...string) error

Post is a simple query-param only post request

func (*Client) PostWithBody Uses

func (c *Client) PostWithBody(ctx context.Context, route string, body interface{}, queryParams ...string) error

PostWithBody is a more complex post request, which includes a json-ified body. If body is not nil, it is encoded to json before sending

func (*Client) SyncStatus Uses

func (c *Client) SyncStatus(ctx context.Context, ref string) ([]string, error)

func (*Client) UpdateManifests Uses

func (c *Client) UpdateManifests(ctx context.Context, spec update.Spec) (job.ID, error)

func (*Client) Version Uses

func (c *Client) Version(ctx context.Context) (string, error)

type Token Uses

type Token string

func (Token) Set Uses

func (t Token) Set(req *http.Request)

Package client imports 19 packages (graph). Updated 2019-09-29. Refresh now. Tools for package owners.