Documentation ¶
Index ¶
- type Client
- func (c *Client) GetApp(ctx context.Context, input *helmgatepb.AppRef) (*helmgatepb.App, error)
- func (c *Client) GetHistory(ctx context.Context, input *helmgatepb.HistoryFilter) (*helmgatepb.Apps, error)
- func (c *Client) InstallApp(ctx context.Context, input *helmgatepb.AppInput) (*helmgatepb.App, error)
- func (c *Client) RollbackApp(ctx context.Context, input *helmgatepb.AppRef) error
- func (c *Client) SearchApps(ctx context.Context, input *helmgatepb.AppFilter) (*helmgatepb.Apps, error)
- func (c *Client) SearchCharts(ctx context.Context, input *helmgatepb.ChartFilter) (*helmgatepb.Charts, error)
- func (c *Client) UninstallApp(ctx context.Context, input *helmgatepb.AppRef) error
- func (c *Client) UpdateApp(ctx context.Context, input *helmgatepb.AppInput) (*helmgatepb.App, error)
- type Opt
- type Options
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
}
Client is a helmgate gRPC client
func (*Client) GetApp ¶
func (c *Client) GetApp(ctx context.Context, input *helmgatepb.AppRef) (*helmgatepb.App, error)
GetApp gets an app/release from the given namespace
func (*Client) GetHistory ¶
func (c *Client) GetHistory(ctx context.Context, input *helmgatepb.HistoryFilter) (*helmgatepb.Apps, error)
GetHistory gets a list of previous versions for the app/release
func (*Client) InstallApp ¶
func (c *Client) InstallApp(ctx context.Context, input *helmgatepb.AppInput) (*helmgatepb.App, error)
InstallApp installs an app/release in the given namespace
func (*Client) RollbackApp ¶
RollbackApp rolls the app/release back to the previous version in the given namespace
func (*Client) SearchApps ¶
func (c *Client) SearchApps(ctx context.Context, input *helmgatepb.AppFilter) (*helmgatepb.Apps, error)
SearchApps searches for apps/releases.
func (*Client) SearchCharts ¶
func (c *Client) SearchCharts(ctx context.Context, input *helmgatepb.ChartFilter) (*helmgatepb.Charts, error)
SearchCharts searches for a local/cached helm chart
func (*Client) UninstallApp ¶
UninstallApp uninstalls an app/release from the given namespace
func (*Client) UpdateApp ¶
func (c *Client) UpdateApp(ctx context.Context, input *helmgatepb.AppInput) (*helmgatepb.App, error)
UpdateApp updates an app/release in the given namespace
type Opt ¶
type Opt func(o *Options)
Opt is a single configuration option
func WithIDToken ¶
WithIDToken makes the client use the oauth id token(if it exists) instead of the oauth access token
func WithLogging ¶
WithLogging registers a logging middleware
func WithTokenSource ¶
func WithTokenSource(tokenSource oauth2.TokenSource) Opt
WithTokenSource uses oauth token add an authorization header to every outbound request
func WithTransportCreds ¶
func WithTransportCreds(creds credentials.TransportCredentials) Opt
WithTransportCreds adds transport credentials to the client