Documentation ¶
Index ¶
- func DockerTag() string
- func NewChartFunction(repo Repo, dir string, options ...ChartOption) ...
- func NewHelmChartFunction(repo Repo, dir string, options ...ChartOption) ...
- func NewJewel(backend JewelBackend, name string) (starlark.Value, error)
- func ReadYamlFile(filename string) (starlark.Value, error)
- func Version() string
- func WriteYamlFile(filename string, value starlark.Value) error
- type Chart
- type ChartOption
- func WithArgs(args starlark.Tuple) ChartOption
- func WithGenus(value string) ChartOption
- func WithKwArgs(kwargs []starlark.Tuple) ChartOption
- func WithNamespace(namespace string) ChartOption
- func WithProperties(properties *starlark.Dict) ChartOption
- func WithReadOnly(value bool) ChartOption
- func WithSkipChart(value bool) ChartOption
- func WithSuffix(suffix string) ChartOption
- func WithValues(values map[string]interface{}) ChartOption
- func WithVersion(value *semver.Version) ChartOption
- type ChartOptions
- type ChartValue
- type ComplexJewelBackend
- type DeleteOptions
- type DirCache
- type GenusAndVersion
- type JewelBackend
- type JewelValue
- type LoadDir
- type LoadReader
- type OpenDirCache
- type OpenReaderCache
- type Properties
- type Property
- type PropertyValue
- type ReadProperty
- type Repo
- type RepoConfig
- type RepoListOptions
- type StructPropertyValue
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChartFunction ¶
func NewChartFunction(repo Repo, dir string, options ...ChartOption) func(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (value starlark.Value, e error)
NewChartFunction -
func NewHelmChartFunction ¶ added in v0.7.0
func NewHelmChartFunction(repo Repo, dir string, options ...ChartOption) func(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (value starlark.Value, e error)
NewHelmChartFunction -
func NewJewel ¶ added in v0.5.6
func NewJewel(backend JewelBackend, name string) (starlark.Value, error)
NewJewel -
func ReadYamlFile ¶ added in v0.5.2
ReadYamlFile -
Types ¶
type Chart ¶
type Chart interface { GetGenus() string GetName() string GetVersion() *semver.Version GetNamespace() string Apply(thread *starlark.Thread, k k8s.K8s) error Delete(thread *starlark.Thread, k k8s.K8s, options *DeleteOptions) error Template(thread *starlark.Thread, k k8s.K8s) k8s.Stream Package(writer io.Writer, helmFormat bool) error AddUsedBy(reference string, k k8s.K8s) (int, error) RemoveUsedBy(reference string, k k8s.K8s) (int, error) }
Chart -
type ChartOption ¶
type ChartOption func(options *ChartOptions)
ChartOption -
func WithProperties ¶ added in v0.7.0
func WithProperties(properties *starlark.Dict) ChartOption
WithProperties -
func WithValues ¶ added in v0.5.1
func WithValues(values map[string]interface{}) ChartOption
WithValues -
func WithVersion ¶ added in v0.6.2
func WithVersion(value *semver.Version) ChartOption
WithVersion -
type ChartOptions ¶
type ChartOptions struct { GenusAndVersion // contains filtered or unexported fields }
ChartOptions -
type ComplexJewelBackend ¶ added in v0.5.6
type ComplexJewelBackend interface { JewelBackend Template() (map[string][]byte, error) Delete(map[string][]byte) error }
ComplexJewelBackend -
type DeleteOptions ¶ added in v0.7.0
type DeleteOptions struct {
// contains filtered or unexported fields
}
DeleteOptions -
func (*DeleteOptions) AddFlags ¶ added in v0.7.0
func (s *DeleteOptions) AddFlags(flagsSet *pflag.FlagSet)
AddFlags -
type DirCache ¶
type DirCache struct {
// contains filtered or unexported fields
}
DirCache -
func (*DirCache) WrapReader ¶
func (d *DirCache) WrapReader(load LoadReader) OpenReaderCache
WrapReader -
type GenusAndVersion ¶ added in v0.7.0
type GenusAndVersion struct {
// contains filtered or unexported fields
}
func NewGenusAndVersion ¶ added in v0.7.0
func NewGenusAndVersion(url string) *GenusAndVersion
func (*GenusAndVersion) AsOptions ¶ added in v0.7.0
func (s *GenusAndVersion) AsOptions() []ChartOption
type JewelBackend ¶ added in v0.5.6
type JewelBackend interface { Name() string Keys() map[string]JewelValue Apply(map[string][]byte) (map[string][]byte, error) }
JewelBackend -
type JewelValue ¶ added in v0.6.8
JewelValue -
type LoadDir ¶
type LoadDir = func(name string, targetDir func() (string, error), etagOld string) (etagNew string, err error)
LoadDir -
type LoadReader ¶
type LoadReader = func(name string, etagOld string) (reader io.ReadCloser, etagNew string, err error)
LoadReader -
type OpenDirCache ¶
OpenDirCache -
type OpenReaderCache ¶
type OpenReaderCache = func(name string) (io.ReadCloser, error)
OpenReaderCache -
type Properties ¶ added in v0.7.0
type Properties struct {
// contains filtered or unexported fields
}
Properties -
func (*Properties) GetValue ¶ added in v0.7.0
func (p *Properties) GetValue() starlark.Value
GetValue -
func (Properties) String ¶ added in v0.7.0
func (p Properties) String() string
type Property ¶ added in v0.7.0
type Property interface { ReadProperty SetValue(value starlark.Value) error }
Property -
type PropertyValue ¶ added in v0.7.0
PropertyValue -
type ReadProperty ¶ added in v0.7.0
ReadProperty -
type Repo ¶
type Repo interface { // Get - Get(thread *starlark.Thread, url string, options ...ChartOption) (ChartValue, error) // GetFromSpec - GetFromSpec(thread *starlark.Thread, spec *shalmv1a2.ChartSpec, options ...ChartOption) (ChartValue, error) // List - List(thread *starlark.Thread, k8s k8s.K8s, listOptions *RepoListOptions) ([]ChartValue, error) }
Repo -
type RepoConfig ¶
type RepoConfig func(r *repoConfigs) error
RepoConfig -
func WithBasicAuth ¶
func WithBasicAuth(url string, username string, password string) RepoConfig
WithBasicAuth -
type RepoListOptions ¶ added in v0.6.2
type RepoListOptions struct {
// contains filtered or unexported fields
}
RepoListOptions -
func (*RepoListOptions) AddFlags ¶ added in v0.6.10
func (s *RepoListOptions) AddFlags(flagsSet *pflag.FlagSet)
AddFlags -
type StructPropertyValue ¶ added in v0.7.0
type StructPropertyValue interface { Property starlark.HasSetField }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.