Documentation ¶
Index ¶
- Constants
- func DockerTag() string
- func NewChartFunction(repo Repo, dir string, namespace string, suffix string) ...
- func NewVault(backend VaultBackend, name string) (starlark.Value, error)
- func Version() string
- type CancelObjectStream
- type Chart
- type ChartOption
- type ChartOptions
- type ChartValue
- type ComplexVaultBackend
- type DirCache
- type K8s
- type K8sConfig
- type K8sConfigs
- type K8sInMemory
- func (k K8sInMemory) Apply(output ObjectStream, options *K8sOptions) error
- func (k K8sInMemory) ConfigContent() *string
- func (k K8sInMemory) Delete(output ObjectStream, options *K8sOptions) error
- func (k K8sInMemory) DeleteObject(kind string, name string, options *K8sOptions) error
- func (k K8sInMemory) ForConfig(config string) (K8s, error)
- func (k K8sInMemory) ForSubChart(namespace string, app string, version semver.Version) K8s
- func (k K8sInMemory) Get(kind string, name string, options *K8sOptions) (*Object, error)
- func (k K8sInMemory) GetObject(kind string, name string) (*Object, error)
- func (k K8sInMemory) Inspect() string
- func (k K8sInMemory) IsNotExist(err error) bool
- func (k K8sInMemory) Progress(progress int)
- func (k K8sInMemory) RolloutStatus(kind string, name string, options *K8sOptions) error
- func (k K8sInMemory) Tool() Tool
- func (k K8sInMemory) Wait(kind string, name string, condition string, options *K8sOptions) error
- func (k K8sInMemory) Watch(kind string, name string, options *K8sOptions) ObjectStream
- type K8sOptions
- type K8sReader
- type K8sValue
- type KwArgsFileVar
- type KwArgsVar
- type KwArgsYamlVar
- type LoadDir
- type LoadReader
- type MetaData
- type Object
- type ObjectStream
- func (o ObjectStream) Encode() Stream
- func (o ObjectStream) Filter(filter func(obj *Object) bool) ObjectStream
- func (o ObjectStream) GroupBy(group func(o *Object) string) func(key string) ObjectStream
- func (o ObjectStream) Map(f func(obj *Object) *Object) ObjectStream
- func (o ObjectStream) Sort(f func(o1 *Object, o2 *Object) int, reverse bool) ObjectStream
- type ObjectWriter
- type OpenDirCache
- type OpenReaderCache
- type ProgressSubscription
- type ProxyMode
- type Repo
- type RepoConfig
- type Stream
- type Tool
- type VaultBackend
Constants ¶
const ( // ProxyModeOff - ProxyModeOff = iota // ProxyModeLocal - ProxyModeLocal // ProxyModeRemote - ProxyModeRemote )
const ( // ToolKubectl - ToolKubectl = iota // ToolKapp - ToolKapp )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelObjectStream ¶ added in v0.2.5
type CancelObjectStream struct{}
CancelObjectStream -
func (CancelObjectStream) Error ¶ added in v0.2.5
func (c CancelObjectStream) Error() string
type Chart ¶
type Chart interface { GetName() string GetVersion() semver.Version Apply(thread *starlark.Thread, k K8s) error Delete(thread *starlark.Thread, k K8s) error Template(thread *starlark.Thread) Stream Package(writer io.Writer, helmFormat bool) error }
Chart -
type ChartOptions ¶
type ChartOptions struct {
// contains filtered or unexported fields
}
ChartOptions -
type ComplexVaultBackend ¶
type ComplexVaultBackend interface { VaultBackend Template() (map[string][]byte, error) Delete() error }
ComplexVaultBackend -
type DirCache ¶ added in v0.4.3
type DirCache struct {
// contains filtered or unexported fields
}
DirCache -
func (*DirCache) WrapDir ¶ added in v0.4.3
func (d *DirCache) WrapDir(load LoadDir) OpenDirCache
WrapDir -
func (*DirCache) WrapReader ¶ added in v0.4.3
func (d *DirCache) WrapReader(load LoadReader) OpenReaderCache
WrapReader -
type K8s ¶
type K8s interface { K8sReader ForSubChart(namespace string, app string, version semver.Version) K8s Inspect() string Watch(kind string, name string, options *K8sOptions) ObjectStream RolloutStatus(kind string, name string, options *K8sOptions) error Wait(kind string, name string, condition string, options *K8sOptions) error DeleteObject(kind string, name string, options *K8sOptions) error Apply(output ObjectStream, options *K8sOptions) error Delete(output ObjectStream, options *K8sOptions) error ConfigContent() *string ForConfig(config string) (K8s, error) Progress(progress int) Tool() Tool }
K8s kubernetes API
type K8sConfig ¶
type K8sConfig func(options *K8sConfigs) error
K8sConfig -
func WithKubeConfigContent ¶
WithKubeConfigContent -
func WithProgressSubscription ¶
func WithProgressSubscription(value ProgressSubscription) K8sConfig
WithProgressSubscription -
type K8sInMemory ¶
type K8sInMemory struct {
// contains filtered or unexported fields
}
K8sInMemory in memory implementation of K8s
func NewK8sInMemory ¶
func NewK8sInMemory(namespace string, objects ...Object) *K8sInMemory
NewK8sInMemory creates a new K8sInMemory instance
func (K8sInMemory) Apply ¶
func (k K8sInMemory) Apply(output ObjectStream, options *K8sOptions) error
Apply -
func (K8sInMemory) Delete ¶
func (k K8sInMemory) Delete(output ObjectStream, options *K8sOptions) error
Delete -
func (K8sInMemory) DeleteObject ¶
func (k K8sInMemory) DeleteObject(kind string, name string, options *K8sOptions) error
DeleteObject -
func (K8sInMemory) ForConfig ¶
func (k K8sInMemory) ForConfig(config string) (K8s, error)
ForConfig -
func (K8sInMemory) ForSubChart ¶
ForSubChart -
func (K8sInMemory) Get ¶
func (k K8sInMemory) Get(kind string, name string, options *K8sOptions) (*Object, error)
Get -
func (K8sInMemory) GetObject ¶
func (k K8sInMemory) GetObject(kind string, name string) (*Object, error)
GetObject -
func (K8sInMemory) RolloutStatus ¶
func (k K8sInMemory) RolloutStatus(kind string, name string, options *K8sOptions) error
RolloutStatus -
func (K8sInMemory) Wait ¶
func (k K8sInMemory) Wait(kind string, name string, condition string, options *K8sOptions) error
Wait -
func (K8sInMemory) Watch ¶
func (k K8sInMemory) Watch(kind string, name string, options *K8sOptions) ObjectStream
Watch -
type K8sOptions ¶
type K8sOptions struct { Namespaced bool Namespace string Timeout time.Duration IgnoreNotFound bool }
K8sOptions common options for calls to k8s
type K8sReader ¶
type K8sReader interface { Get(kind string, name string, options *K8sOptions) (*Object, error) IsNotExist(err error) bool }
K8sReader kubernetes reader API
type K8sValue ¶
K8sValue -
func NewK8sValue ¶
NewK8sValue create new instance to interact with kubernetes
type KwArgsFileVar ¶ added in v0.2.5
type KwArgsFileVar struct {
// contains filtered or unexported fields
}
KwArgsFileVar -
func (KwArgsFileVar) String ¶ added in v0.2.5
func (p KwArgsFileVar) String() string
type KwArgsYamlVar ¶ added in v0.2.5
type KwArgsYamlVar struct {
// contains filtered or unexported fields
}
KwArgsYamlVar -
func (KwArgsYamlVar) String ¶ added in v0.2.5
func (p KwArgsYamlVar) String() string
type LoadDir ¶ added in v0.4.3
type LoadDir = func(name string, targetDir func() (string, error), etagOld string) (etagNew string, err error)
LoadDir -
type LoadReader ¶ added in v0.4.3
type LoadReader = func(name string, etagOld string) (reader io.ReadCloser, etagNew string, err error)
LoadReader -
type MetaData ¶
type MetaData struct { Namespace string Name string Labels map[string]string Additional map[string]json.RawMessage }
MetaData -
func (MetaData) MarshalJSON ¶ added in v0.2.5
MarshalJSON -
func (*MetaData) UnmarshalJSON ¶ added in v0.2.5
UnmarshalJSON -
type Object ¶
type Object struct { MetaData MetaData `json:"metadata,omitempty"` APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Additional map[string]json.RawMessage `json:",inline"` }
Object -
func (Object) MarshalJSON ¶ added in v0.2.5
MarshalJSON -
func (*Object) UnmarshalJSON ¶ added in v0.2.5
UnmarshalJSON -
type ObjectStream ¶
type ObjectStream func(w ObjectWriter) error
ObjectStream -
func ObjectErrorStream ¶ added in v0.2.5
func ObjectErrorStream(err error) ObjectStream
ObjectErrorStream -
func (ObjectStream) Filter ¶ added in v0.2.5
func (o ObjectStream) Filter(filter func(obj *Object) bool) ObjectStream
Filter -
func (ObjectStream) GroupBy ¶ added in v0.2.5
func (o ObjectStream) GroupBy(group func(o *Object) string) func(key string) ObjectStream
GroupBy -
func (ObjectStream) Sort ¶
func (o ObjectStream) Sort(f func(o1 *Object, o2 *Object) int, reverse bool) ObjectStream
Sort -
type OpenDirCache ¶ added in v0.4.3
OpenDirCache -
type OpenReaderCache ¶ added in v0.4.3
type OpenReaderCache = func(name string) (io.ReadCloser, error)
OpenReaderCache -
type Repo ¶
type Repo interface { // Get - Get(thread *starlark.Thread, url string, options ...ChartOption) (ChartValue, error) // GetFromSpec - GetFromSpec(thread *starlark.Thread, spec *shalmv1a2.ChartSpec) (ChartValue, error) }
Repo -
type RepoConfig ¶ added in v0.4.3
type RepoConfig func(r *repoConfigs) error
RepoConfig -
func WithBasicAuth ¶ added in v0.4.3
func WithBasicAuth(url string, username string, password string) RepoConfig
WithBasicAuth -
func WithConfigFile ¶ added in v0.4.3
func WithConfigFile(filename string) RepoConfig
WithConfigFile -
func WithTokenAuth ¶ added in v0.4.3
func WithTokenAuth(url string, token string) RepoConfig
WithTokenAuth -
Source Files ¶
- api.go
- certificate.go
- chart.go
- chart_class.go
- chart_init.go
- chart_options.go
- chart_package.go
- chart_proxy.go
- chart_template.go
- config_value.go
- convert.go
- dict.go
- dir_cache.go
- k8s.go
- k8s_client.go
- k8s_in_memory.go
- k8s_value.go
- kube_config.go
- kwargs_parser.go
- object.go
- object_stream.go
- repo.go
- repo_config.go
- stream.go
- user_credential.go
- vault.go
- version.go
- yaml.go