Documentation
¶
Index ¶
- Variables
- func DealWithNsWhenInstall(options plugininstaller.RawOptions) error
- func Delete(options plugininstaller.RawOptions) error
- func GetPluginAllState(options plugininstaller.RawOptions) (statemanager.ResourceState, error)
- func InstallOrUpdate(options plugininstaller.RawOptions) error
- func SetDefaultConfig(defaultConfig *Options) plugininstaller.MutableOperation
- func Validate(options plugininstaller.RawOptions) (plugininstaller.RawOptions, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCreateOperations = plugininstaller.ExecuteOperations{ DealWithNsWhenInstall, InstallOrUpdate, } DefaultUpdateOperations = plugininstaller.ExecuteOperations{ InstallOrUpdate, } DefaultDeleteOperations = plugininstaller.ExecuteOperations{ Delete, } DefaultTerminateOperations = plugininstaller.TerminateOperations{ Delete, } )
Functions ¶
func DealWithNsWhenInstall ¶
func DealWithNsWhenInstall(options plugininstaller.RawOptions) error
DealWithNsWhenInstall will create namespace by input options
func Delete ¶
func Delete(options plugininstaller.RawOptions) error
Delete will delete service base on input options
func GetPluginAllState ¶
func GetPluginAllState(options plugininstaller.RawOptions) (statemanager.ResourceState, error)
GetPluginAllState will get the State of k8s Deployment, DaemonSet and StatefulSet resources
func InstallOrUpdate ¶
func InstallOrUpdate(options plugininstaller.RawOptions) error
InstallOrUpdate will install or update service by input options
func SetDefaultConfig ¶
func SetDefaultConfig(defaultConfig *Options) plugininstaller.MutableOperation
SetDefaultConfig will update options empty values base on import options
func Validate ¶
func Validate(options plugininstaller.RawOptions) (plugininstaller.RawOptions, error)
Validate validates the options provided by the dtm-core.
Types ¶
type Options ¶
type Options struct { Repo helm.Repo `mapstructure:"repo"` Chart helm.Chart `mapstructure:"chart"` }
Options is the struct for parameters used by the helm install config.
func NewOptions ¶
func NewOptions(options plugininstaller.RawOptions) (*Options, error)
NewOptions create options by raw options
func (*Options) FillDefaultValue ¶ added in v0.9.0
func (*Options) GetHelmParam ¶
func (*Options) GetNamespace ¶
func (*Options) GetReleaseName ¶
Click to show internal directories.
Click to hide internal directories.