Documentation ¶
Index ¶
- Constants
- func ControllerClient(c *action.Configuration) (client.Client, error)
- func Discardf(format string, v ...interface{})
- func KubernetesAPIExtensionClientSet(c *action.Configuration) (clientset.Interface, error)
- func KubernetesClientSet(c *action.Configuration) (kubernetes.Interface, error)
- func KubernetesDynamicClientSet(c *action.Configuration) (dynamic.Interface, error)
- type CheckInstall
- type CreateInstance
- type CreateTenant
- type DeleteInstance
- type DeleteTenant
- type Install
- type Instances
- type Uninstall
Constants ¶
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 ¶
func (i *CheckInstall) Run() (*install.SiteWhereInstall, error)
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 ¶
func (i *CreateInstance) Run() (*instance.CreateSiteWhereInstance, error)
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
func (i *CreateTenant) Run() (*tenant.CreateSiteWhereTenant, error)
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 ¶
func (i *DeleteInstance) Run() (*instance.DeleteSiteWhereInstance, error)
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
func (i *DeleteTenant) Run() (*tenant.CreateSiteWhereTenant, error)
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 // 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
CheckInstallPrerequisites checks for SiteWhere Install Prerequisites
func (*Install) ConfigurationExists ¶ added in v0.8.0
ConfigurationExists check for swctl configuration file
func (*Install) CreateConfiguration ¶ added in v0.8.0
CreateConfiguration Loads the default and minimal configuration and tries to save it.
type Instances ¶
type Instances struct {
// 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
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