action

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrIstioNotInstalled is the error when istio is not installed
	ErrIstioNotInstalled = "Istio is not intalled, install istio with `istioctl install` and try again"
)

Variables

This section is empty.

Functions

func ControllerClient added in v0.4.0

func ControllerClient(c *action.Configuration) (client.Client, error)

ControllerClient creates a new controller client

func Discardf added in v0.4.1

func Discardf(format string, v ...interface{})

Discardf discards messages

func KubernetesAPIExtensionClientSet added in v0.4.0

func KubernetesAPIExtensionClientSet(c *action.Configuration) (clientset.Interface, error)

KubernetesAPIExtensionClientSet create a new kubernetes API Extension Clientset

func KubernetesClientSet added in v0.4.0

func KubernetesClientSet(c *action.Configuration) (kubernetes.Interface, error)

KubernetesClientSet creates a new kubernetes ClientSet based on the configuration

func KubernetesDynamicClientSet added in v0.4.0

func KubernetesDynamicClientSet(c *action.Configuration) (dynamic.Interface, error)

KubernetesDynamicClientSet create a new kubernetes API Extension Clientset

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 *action.Configuration) *CheckInstall

NewCheckInstall constructs a new *Install

func (*CheckInstall) Run

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

type CreateInstance

type CreateInstance struct {

	// Name of the instance
	InstanceName string
	// Name of the tenant
	TenantName string
	// Namespace to use
	Namespace string
	// Minimal use minimal profile. Initialize only essential microservices.
	Minimal bool
	// Number of replicas
	Replicas int32
	// Registry is the docker registry of the microservices images
	Registry string
	// 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 *action.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 CreateTenant added in v0.2.3

type CreateTenant struct {

	// Name of the instance
	InstanceName string
	// Name of the tenant
	TenantName string
	// AuthenticationToken is the token used for authenticating the tenant
	AuthenticationToken string
	// Authorized are the IDs of the users that are authorized to use the tenant
	AuthorizedUserIds []string
	// ConfigurationTemplate is the configuration template used for the tenant
	ConfigurationTemplate string
	// DatasetTemplate is the dataset template used for the tenant
	DatasetTemplate string
	// contains filtered or unexported fields
}

CreateTenant is the action for creating a SiteWhere tenant

func NewCreateTenant added in v0.2.3

func NewCreateTenant(cfg *action.Configuration) *CreateTenant

NewCreateTenant constructs a new *Install

func (*CreateTenant) ExtractTenantName added in v0.2.3

func (i *CreateTenant) ExtractTenantName(args []string) (string, error)

ExtractTenantName returns the name of the instance that should be used.

func (*CreateTenant) Run added in v0.2.3

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

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 *action.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 DeleteTenant added in v0.4.2

type DeleteTenant struct {

	// Name of the instance
	InstanceName string
	// Name of the tenant
	TenantName string
	// contains filtered or unexported fields
}

DeleteTenant is the action for deleting a SiteWhere tenant

func NewDeleteTenant added in v0.4.2

func NewDeleteTenant(cfg *action.Configuration) *DeleteTenant

NewDeleteTenant constructs a new *Install

func (*DeleteTenant) ExtractTenantName added in v0.4.2

func (i *DeleteTenant) ExtractTenantName(args []string) (string, error)

ExtractTenantName returns the name of the instance that should be used.

func (*DeleteTenant) Run added in v0.4.2

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

type Install

type Install struct {

	// HelmChartVersion is the version of SiteWhere Infrastructure Helm Chart
	HelmChartVersion string

	// SkipCRD indicates if we need to install SiteWhere Custom Resource Definitions
	SkipCRD bool
	// SkipTemplate indicates if we need to install SiteWhere templates
	SkipTemplate bool
	// SkipOperator indicates if we need to install SiteWhere Operator
	SkipOperator bool
	// SkipInfrastructure indicates if we need to install SiteWhere Infrastructure
	SkipInfrastructure bool
	// Wait for components to be ready before return control.
	WaitReady bool
	// Use verbose mode
	Verbose bool
	// Minimal if true, deploy minimal infrastucure
	Minimal bool
	// StorageClass is the name of the storage class for the infrastructure
	StorageClass string
	// KafkaPVCStorageSize is the size of Kafka PVC Storage Size
	KafkaPVCStorageSize string
	// InfluxDBPVCStorageSize is the size of InfluxDB PVC Storage Size
	InfluxDBPVCStorageSize string
	// contains filtered or unexported fields
}

Install is the action for installing SiteWhere

func NewInstall

func NewInstall(cfg *action.Configuration, settings *cli.EnvSettings) *Install

NewInstall constructs a new *Install

func (*Install) CheckInstallPrerequisites added in v0.3.1

func (i *Install) CheckInstallPrerequisites() error

CheckInstallPrerequisites checks for SiteWhere Install Prerequisites

func (*Install) ConfigurationExists added in v0.8.0

func (i *Install) ConfigurationExists() bool

ConfigurationExists check for swctl configuration file

func (*Install) CreateConfiguration added in v0.8.0

func (i *Install) CreateConfiguration() error

CreateConfiguration Loads the default and minimal configuration and tries to save it.

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 {

	// Name of the instance
	InstanceName string
	// contains filtered or unexported fields
}

Instances is the action for listing SiteWhere instances

func NewInstances

func NewInstances(cfg *action.Configuration) *Instances

NewInstances constructs a new *Instances

func (*Instances) ExtractInstanceNameArg added in v0.9.0

func (i *Instances) ExtractInstanceNameArg(args []string) (string, error)

ExtractInstanceNameArg returns the name of the instance that should be used.

func (*Instances) Run

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

type ListMicroservices added in v0.9.1

type ListMicroservices struct {

	// Name of the instance
	InstanceName string
	// contains filtered or unexported fields
}

ListMicroservices is the action for listing SiteWhere Microservices

func NewListMicroservices added in v0.9.1

func NewListMicroservices(cfg *action.Configuration) *ListMicroservices

NewListMicroservices constructs a new *ListMicroservices

func (*ListMicroservices) Run added in v0.9.1

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

type ListMicroservicesResult added in v0.9.1

type ListMicroservicesResult struct {
	// Name of the instance
	Name string `json:"name"`

	// Microservices are the microservices of a instance
	Microservices []sitewhereiov1alpha4.SiteWhereMicroservice `json:"microservices"`
}

ListMicroservicesResult is result the action for listing SiteWhere Microservices

type LogLevel added in v0.9.0

type LogLevel struct {

	// Name of the Instance
	InstanceName string

	// Name of the Microservice in the instance
	MicroserviceName string

	// Level is the new log level to set
	Level logs.Level

	// Logger are the logger to change the level to the new value
	Logger []string
	// contains filtered or unexported fields
}

LogLevel is the action for changing SiteWhere Microservoce Log Levels

func NewLogLevel added in v0.9.0

func NewLogLevel(cfg *action.Configuration) *LogLevel

NewLogLevel constructs a new *Logs

func (*LogLevel) Run added in v0.9.0

func (i *LogLevel) Run() error

Run executes the log-level command

type Logs added in v0.9.0

type Logs struct {

	// Name of the Instance
	InstanceName string

	// Name of the Microservice in the instance
	MicroserviceName string

	// Follow if true, the follow the logs
	Follow bool
	// contains filtered or unexported fields
}

Logs is the action for showing SiteWhere Microservoce Logs

func NewLogs added in v0.9.0

func NewLogs(cfg *action.Configuration) *Logs

NewLogs constructs a new *Logs

func (*Logs) Run added in v0.9.0

func (i *Logs) Run() error

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

type Uninstall

type Uninstall struct {

	// 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 *action.Configuration, settings *cli.EnvSettings) *Uninstall

NewUninstall constructs a new *Uninstall

func (*Uninstall) Run

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

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