Documentation
¶
Index ¶
- type CheckInstall
- type Configuration
- func (c *Configuration) Init(getter genericclioptions.RESTClientGetter, namespace string, log DebugLog) error
- func (c *Configuration) KubernetesAPIExtensionClientSet() (clientset.Interface, error)
- func (c *Configuration) KubernetesClientSet() (kubernetes.Interface, error)
- func (c *Configuration) KubernetesDynamicClientSet() (dynamic.Interface, error)
- type CreateInstance
- type DebugLog
- type DeleteInstance
- type Install
- type Instances
- type RESTClientGetter
- type Uninstall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckInstall ¶
type CheckInstall struct {
// Use verbose mode
Verbose bool
// contains filtered or unexported fields
}
CheckInstall is the action for check SiteWhere installation
func NewCheckInstall ¶
func NewCheckInstall(cfg *Configuration) *CheckInstall
NewCheckInstall constructs a new *Install
type Configuration ¶
type Configuration struct {
// RESTClientGetter is an interface that loads Kubernetes clients.
RESTClientGetter RESTClientGetter
// KubeClient is a Kubernetes API client.
KubeClient kube.Interface
Log func(string, ...interface{})
}
Configuration injects the dependencies that all actions share.
func (*Configuration) Init ¶
func (c *Configuration) Init(getter genericclioptions.RESTClientGetter, namespace string, log DebugLog) error
Init initializes the action configuration
func (*Configuration) KubernetesAPIExtensionClientSet ¶
func (c *Configuration) KubernetesAPIExtensionClientSet() (clientset.Interface, error)
KubernetesAPIExtensionClientSet create a new kubernetes API Extension Clientset
func (*Configuration) KubernetesClientSet ¶
func (c *Configuration) KubernetesClientSet() (kubernetes.Interface, error)
KubernetesClientSet creates a new kubernetes ClientSet based on the configuration
func (*Configuration) KubernetesDynamicClientSet ¶
func (c *Configuration) KubernetesDynamicClientSet() (dynamic.Interface, error)
KubernetesDynamicClientSet create a new kubernetes API Extension Clientset
type CreateInstance ¶
type CreateInstance struct {
// Name of the instance
InstanceName string
// Namespace to use
Namespace string
// Use minimal profile. Initialize only essential microservices.
Minimal bool
// Number of replicas
Replicas int64
// Docker image tag
Tag string
// Use debug mode
Debug bool
// Configuration Template
ConfigurationTemplate string
// Dataset template
DatasetTemplate string
// contains filtered or unexported fields
}
CreateInstance is the action for creating a SiteWhere instance
func NewCreateInstance ¶
func NewCreateInstance(cfg *Configuration) *CreateInstance
NewCreateInstance constructs a new *Install
func (*CreateInstance) ExtractInstanceName ¶
func (i *CreateInstance) ExtractInstanceName(args []string) (string, error)
ExtractInstanceName returns the name of the instance that should be used.
type DebugLog ¶
type DebugLog func(format string, v ...interface{})
DebugLog sets the logger that writes debug strings
type DeleteInstance ¶
type DeleteInstance struct {
// Name of the instance
InstanceName string
// Purge Instance data
Purge bool
// contains filtered or unexported fields
}
DeleteInstance is the action for creating a SiteWhere instance
func NewDeleteInstance ¶
func NewDeleteInstance(cfg *Configuration) *DeleteInstance
NewDeleteInstance constructs a new *Install
func (*DeleteInstance) ExtractInstanceName ¶
func (i *DeleteInstance) ExtractInstanceName(args []string) (string, error)
ExtractInstanceName returns the name of the instance that should be used.
type Install ¶
type Install struct {
StatikFS http.FileSystem
// Minimal installation only install escential SiteWhere components.
Minimal bool
// Wait for components to be ready before return control.
WaitReady bool
// Use verbose mode
Verbose bool
// contains filtered or unexported fields
}
Install is the action for installing SiteWhere
type Instances ¶
type Instances struct {
// contains filtered or unexported fields
}
Instances is the action for listing SiteWhere instances
func NewInstances ¶
func NewInstances(cfg *Configuration) *Instances
NewInstances constructs a new *Instances
type RESTClientGetter ¶
type RESTClientGetter interface {
ToRESTConfig() (*rest.Config, error)
ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
ToRESTMapper() (meta.RESTMapper, error)
}
RESTClientGetter gets the rest client
type Uninstall ¶
type Uninstall struct {
StatikFS http.FileSystem
// Minimal installation only install escential SiteWhere components.
Minimal bool
// Use verbose mode
Verbose bool
// Purge data
Purge bool
// contains filtered or unexported fields
}
Uninstall is the action for installing SiteWhere
func NewUninstall ¶
func NewUninstall(cfg *Configuration) *Uninstall
NewUninstall constructs a new *Uninstall