Documentation ¶
Index ¶
- type Client
- func (c *Client) Export(ctx context.Context) ([]byte, error)
- func (c *Client) Get(ctx context.Context, dest interface{}, route string, queryParams ...string) error
- func (c *Client) GitRepoConfig(ctx context.Context, regenerate bool) (v6.GitConfig, error)
- func (c *Client) JobStatus(ctx context.Context, jobID job.ID) (job.Status, error)
- func (c *Client) ListImages(ctx context.Context, s update.ResourceSpec) ([]v6.ImageStatus, error)
- func (c *Client) ListImagesWithOptions(ctx context.Context, opts v10.ListImagesOptions) ([]v6.ImageStatus, error)
- func (c *Client) ListServices(ctx context.Context, namespace string) ([]v6.ControllerStatus, error)
- func (c *Client) ListServicesWithOptions(ctx context.Context, opts v11.ListServicesOptions) ([]v6.ControllerStatus, error)
- func (c *Client) LogEvent(ctx context.Context, event event.Event) error
- func (c *Client) NotifyChange(ctx context.Context, change v9.Change) error
- func (c *Client) PatchWithBody(ctx context.Context, route string, body interface{}, queryParams ...string) error
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Post(ctx context.Context, route string, queryParams ...string) error
- func (c *Client) PostWithBody(ctx context.Context, route string, body interface{}, queryParams ...string) error
- func (c *Client) SyncStatus(ctx context.Context, ref string) ([]string, error)
- func (c *Client) UpdateManifests(ctx context.Context, spec update.Spec) (job.ID, error)
- func (c *Client) Version(ctx context.Context) (string, error)
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Get ¶
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 ¶
func (*Client) ListImages ¶
func (c *Client) ListImages(ctx context.Context, s update.ResourceSpec) ([]v6.ImageStatus, error)
func (*Client) ListImagesWithOptions ¶
func (c *Client) ListImagesWithOptions(ctx context.Context, opts v10.ListImagesOptions) ([]v6.ImageStatus, error)
func (*Client) ListServices ¶
func (*Client) ListServicesWithOptions ¶
func (c *Client) ListServicesWithOptions(ctx context.Context, opts v11.ListServicesOptions) ([]v6.ControllerStatus, error)
func (*Client) NotifyChange ¶
func (*Client) PatchWithBody ¶
func (*Client) PostWithBody ¶
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 ¶
func (*Client) UpdateManifests ¶
Click to show internal directories.
Click to hide internal directories.