action

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckInstall

type CheckInstall struct {
	StatikFS http.FileSystem
	// 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

func (*CheckInstall) Run

Run executes the list command, returning a set of matches.

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.

func (*CreateInstance) Run

Run executes the list command, returning a set of matches.

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.

func (*DeleteInstance) Run

Run executes the list command, returning a set of matches.

type Install

type Install struct {
	StatikFS http.FileSystem
	// CRD indicates if we need to install SiteWhere Custom Resource Definitions
	CRD bool
	// Template indicates if we need to install SiteWhere templates
	Template bool
	// Operator indicates if we need to install SiteWhere Operator
	Operator bool
	// Infrastructure indicates if we need to install SiteWhere Infrastructure
	Infrastructure bool
	// 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

func NewInstall

func NewInstall(cfg *Configuration) *Install

NewInstall constructs a new *Install

func (*Install) Run

func (i *Install) Run() (*install.SiteWhereInstall, error)

Run executes the install command, returning the result of the installation

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

func (*Instances) Run

Run executes the install command, returning the result of the installation

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

func (*Uninstall) Run

Run executes the uninstall command, returning the result of the uninstallation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL