Documentation
¶
Index ¶
- type CommonOptions
- type DefaultNelmActions
- func (d *DefaultNelmActions) ChartRender(ctx context.Context, opts action.ChartRenderOptions) (*action.ChartRenderResultV1, error)
- func (d *DefaultNelmActions) ReleaseGet(ctx context.Context, name, namespace string, opts action.ReleaseGetOptions) (*action.ReleaseGetResultV1, error)
- func (d *DefaultNelmActions) ReleaseInstall(ctx context.Context, name, namespace string, opts action.ReleaseInstallOptions) error
- func (d *DefaultNelmActions) ReleaseList(ctx context.Context, opts action.ReleaseListOptions) (*action.ReleaseListResultV1, error)
- func (d *DefaultNelmActions) ReleaseUninstall(ctx context.Context, name, namespace string, ...) error
- type NelmActions
- type NelmClient
- func (c *NelmClient) DeleteRelease(releaseName string) error
- func (c *NelmClient) GetAnnotations() map[string]string
- func (c *NelmClient) GetReleaseChecksum(releaseName string) (string, error)
- func (c *NelmClient) GetReleaseLabels(releaseName, labelName string) (string, error)
- func (c *NelmClient) GetReleaseValues(releaseName string) (utils.Values, error)
- func (c *NelmClient) IsReleaseExists(releaseName string) (bool, error)
- func (c *NelmClient) LastReleaseStatus(releaseName string) (string, string, error)
- func (c *NelmClient) ListReleasesNames() ([]string, error)
- func (c *NelmClient) Render(releaseName, modulePath string, valuesPaths, setValues []string, ...) (string, error)
- func (c *NelmClient) UpgradeRelease(releaseName, modulePath string, valuesPaths []string, setValues []string, ...) error
- func (c *NelmClient) WithExtraAnnotations(annotations map[string]string)
- func (c *NelmClient) WithExtraLabels(labels map[string]string)
- func (c *NelmClient) WithLogLabels(logLabels map[string]string)
- type NelmLogger
- func (n *NelmLogger) AcceptLevel(_ context.Context, _ nelmlog.Level) bool
- func (n *NelmLogger) BlockContentWidth(_ context.Context) int
- func (n *NelmLogger) Debug(ctx context.Context, format string, a ...interface{})
- func (n *NelmLogger) DebugPop(_ context.Context, _ string)
- func (n *NelmLogger) DebugPush(ctx context.Context, _, format string, a ...interface{})
- func (n *NelmLogger) EnrichWithLabels(labelsMaps ...map[string]string) *NelmLogger
- func (n *NelmLogger) Error(ctx context.Context, format string, a ...interface{})
- func (n *NelmLogger) ErrorPop(_ context.Context, _ string)
- func (n *NelmLogger) ErrorPush(ctx context.Context, _, format string, a ...interface{})
- func (n *NelmLogger) Info(ctx context.Context, format string, a ...interface{})
- func (n *NelmLogger) InfoBlock(ctx context.Context, opts nelmlog.BlockOptions, fn func())
- func (n *NelmLogger) InfoBlockErr(ctx context.Context, opts nelmlog.BlockOptions, fn func() error) error
- func (n *NelmLogger) InfoPop(_ context.Context, _ string)
- func (n *NelmLogger) InfoPush(ctx context.Context, _, format string, a ...interface{})
- func (n *NelmLogger) Level(_ context.Context) nelmlog.Level
- func (n *NelmLogger) SetLevel(_ context.Context, lvl nelmlog.Level)
- func (n *NelmLogger) Trace(ctx context.Context, format string, a ...interface{})
- func (n *NelmLogger) TracePop(_ context.Context, _ string)
- func (n *NelmLogger) TracePush(ctx context.Context, _, format string, a ...interface{})
- func (n *NelmLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})
- func (n *NelmLogger) Warn(ctx context.Context, format string, a ...interface{})
- func (n *NelmLogger) WarnPop(_ context.Context, _ string)
- func (n *NelmLogger) WarnPush(ctx context.Context, _, format string, a ...interface{})
- func (n *NelmLogger) With(args ...any) *NelmLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonOptions ¶
type CommonOptions struct {
genericclioptions.ConfigFlags
HistoryMax int32
Timeout time.Duration
HelmDriver string
KubeContext string
}
type DefaultNelmActions ¶
type DefaultNelmActions struct{}
func (*DefaultNelmActions) ChartRender ¶
func (d *DefaultNelmActions) ChartRender(ctx context.Context, opts action.ChartRenderOptions) (*action.ChartRenderResultV1, error)
func (*DefaultNelmActions) ReleaseGet ¶
func (d *DefaultNelmActions) ReleaseGet(ctx context.Context, name, namespace string, opts action.ReleaseGetOptions) (*action.ReleaseGetResultV1, error)
func (*DefaultNelmActions) ReleaseInstall ¶
func (d *DefaultNelmActions) ReleaseInstall(ctx context.Context, name, namespace string, opts action.ReleaseInstallOptions) error
func (*DefaultNelmActions) ReleaseList ¶
func (d *DefaultNelmActions) ReleaseList(ctx context.Context, opts action.ReleaseListOptions) (*action.ReleaseListResultV1, error)
func (*DefaultNelmActions) ReleaseUninstall ¶
func (d *DefaultNelmActions) ReleaseUninstall(ctx context.Context, name, namespace string, opts action.ReleaseUninstallOptions) error
type NelmActions ¶
type NelmActions interface {
ReleaseGet(ctx context.Context, name, namespace string, opts action.ReleaseGetOptions) (*action.ReleaseGetResultV1, error)
ReleaseInstall(ctx context.Context, name, namespace string, opts action.ReleaseInstallOptions) error
ReleaseUninstall(ctx context.Context, name, namespace string, opts action.ReleaseUninstallOptions) error
ReleaseList(ctx context.Context, opts action.ReleaseListOptions) (*action.ReleaseListResultV1, error)
ChartRender(ctx context.Context, opts action.ChartRenderOptions) (*action.ChartRenderResultV1, error)
}
type NelmClient ¶
type NelmClient struct {
// contains filtered or unexported fields
}
func NewNelmClient ¶
func NewNelmClient(opts *CommonOptions, logger *log.Logger, labels map[string]string) *NelmClient
func (*NelmClient) DeleteRelease ¶
func (c *NelmClient) DeleteRelease(releaseName string) error
func (*NelmClient) GetAnnotations ¶
func (c *NelmClient) GetAnnotations() map[string]string
GetAnnotations returns the annotations for testing purposes
func (*NelmClient) GetReleaseChecksum ¶
func (c *NelmClient) GetReleaseChecksum(releaseName string) (string, error)
func (*NelmClient) GetReleaseLabels ¶
func (c *NelmClient) GetReleaseLabels(releaseName, labelName string) (string, error)
GetReleaseLabels returns a specific label value from the release.
func (*NelmClient) GetReleaseValues ¶
func (c *NelmClient) GetReleaseValues(releaseName string) (utils.Values, error)
func (*NelmClient) IsReleaseExists ¶
func (c *NelmClient) IsReleaseExists(releaseName string) (bool, error)
func (*NelmClient) LastReleaseStatus ¶
func (c *NelmClient) LastReleaseStatus(releaseName string) (string, string, error)
func (*NelmClient) ListReleasesNames ¶
func (c *NelmClient) ListReleasesNames() ([]string, error)
func (*NelmClient) UpgradeRelease ¶
func (*NelmClient) WithExtraAnnotations ¶
func (c *NelmClient) WithExtraAnnotations(annotations map[string]string)
func (*NelmClient) WithExtraLabels ¶
func (c *NelmClient) WithExtraLabels(labels map[string]string)
func (*NelmClient) WithLogLabels ¶
func (c *NelmClient) WithLogLabels(logLabels map[string]string)
type NelmLogger ¶
type NelmLogger struct {
// contains filtered or unexported fields
}
func NewNelmLogger ¶
func NewNelmLogger(logger *log.Logger) *NelmLogger
func (*NelmLogger) AcceptLevel ¶
func (*NelmLogger) BlockContentWidth ¶
func (n *NelmLogger) BlockContentWidth(_ context.Context) int
func (*NelmLogger) Debug ¶
func (n *NelmLogger) Debug(ctx context.Context, format string, a ...interface{})
func (*NelmLogger) DebugPush ¶
func (n *NelmLogger) DebugPush(ctx context.Context, _, format string, a ...interface{})
func (*NelmLogger) EnrichWithLabels ¶
func (n *NelmLogger) EnrichWithLabels(labelsMaps ...map[string]string) *NelmLogger
func (*NelmLogger) Error ¶
func (n *NelmLogger) Error(ctx context.Context, format string, a ...interface{})
func (*NelmLogger) ErrorPush ¶
func (n *NelmLogger) ErrorPush(ctx context.Context, _, format string, a ...interface{})
func (*NelmLogger) Info ¶
func (n *NelmLogger) Info(ctx context.Context, format string, a ...interface{})
func (*NelmLogger) InfoBlock ¶
func (n *NelmLogger) InfoBlock(ctx context.Context, opts nelmlog.BlockOptions, fn func())
func (*NelmLogger) InfoBlockErr ¶
func (n *NelmLogger) InfoBlockErr(ctx context.Context, opts nelmlog.BlockOptions, fn func() error) error
func (*NelmLogger) InfoPush ¶
func (n *NelmLogger) InfoPush(ctx context.Context, _, format string, a ...interface{})
func (*NelmLogger) Trace ¶
func (n *NelmLogger) Trace(ctx context.Context, format string, a ...interface{})
func (*NelmLogger) TracePush ¶
func (n *NelmLogger) TracePush(ctx context.Context, _, format string, a ...interface{})
func (*NelmLogger) TraceStruct ¶
func (n *NelmLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})
func (*NelmLogger) Warn ¶
func (n *NelmLogger) Warn(ctx context.Context, format string, a ...interface{})
func (*NelmLogger) WarnPush ¶
func (n *NelmLogger) WarnPush(ctx context.Context, _, format string, a ...interface{})
func (*NelmLogger) With ¶
func (n *NelmLogger) With(args ...any) *NelmLogger
Click to show internal directories.
Click to hide internal directories.