rasactl

package
v0.0.0-...-601a7b6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Copyright © 2021 Rasa Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	StatusStopped    = "Stopped"
	StatusRunning    = "Running"
	StatusInstalling = "Installing"
	StatusUpgrading  = "Upgrading"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RasaCtl

type RasaCtl struct {
	// KubernetesClient defines the Kubernetes client.
	KubernetesClient k8s.KubernetesInterface

	// HelmClient defines the helm client.
	HelmClient helm.Interface

	// RasaXClient defines the Rasa X client.
	RasaXClient *rasax.RasaX

	// DockerClient defines the Docker client.
	DockerClient docker.Interface

	// Log defines logger.
	Log logr.Logger

	// Spinner stores a spinner object.
	Spinner *status.SpinnerMessage

	// Namespace is a namespace name.
	Namespace string

	// CloudProvider stores a type of a detected cloud provider.
	CloudProvider *cloud.Provider

	// Flags stores the command flags.
	Flags *types.RasaCtlFlags
	// contains filtered or unexported fields
}

RasaCtl defines the rasactl client.

func (*RasaCtl) Add

func (r *RasaCtl) Add() error

Add adds an existing deployment.

func (*RasaCtl) AuthLogin

func (r *RasaCtl) AuthLogin() error

func (*RasaCtl) AuthLogout

func (r *RasaCtl) AuthLogout() error

func (*RasaCtl) CheckDeploymentStatus

func (r *RasaCtl) CheckDeploymentStatus() (bool, bool, error)

CheckDeploymentStatus checks if a given deployment is deployed and running.

It returns 'true' as the first value if the deployment is deployed, and 'true' as the second value if the deployment is running.

func (*RasaCtl) ConfigUseDeployment

func (r *RasaCtl) ConfigUseDeployment() error

ConfigUseDeployment sets the current-deployment in the configuration file.

func (*RasaCtl) ConnectRasa

func (r *RasaCtl) ConnectRasa() error

ConnectRasa connects a local rasa server to a given deployment.

func (*RasaCtl) CreateAndJoinKindNode

func (r *RasaCtl) CreateAndJoinKindNode() error

CreateAndJoinKindNode creates and joins a kind node.

func (*RasaCtl) Delete

func (r *RasaCtl) Delete() error

Delete deletes a given deployment.

func (*RasaCtl) EnterpriseActivate

func (r *RasaCtl) EnterpriseActivate() error

EnterpriseActivate activates an Enterprise license.

func (*RasaCtl) EnterpriseDeactivate

func (r *RasaCtl) EnterpriseDeactivate() error

EnterpriseDeactivate deactivates an Enterprise license.

func (*RasaCtl) GetAllHelmValues

func (r *RasaCtl) GetAllHelmValues() error

GetAllHelmValues gets all evaluated values for a given helm release, and stores it in KubernetesClient.Helm.Values, HelmClient.Values.

func (*RasaCtl) GetKindControlPlaneNodeInfo

func (r *RasaCtl) GetKindControlPlaneNodeInfo() error

GetKindControlPlaneNodeInfo gets information about a kind control plane node and stores data in the DockerClient.Kind object.

func (*RasaCtl) GetRasaXToken

func (r *RasaCtl) GetRasaXToken() (string, error)

func (*RasaCtl) GetRasaXURL

func (r *RasaCtl) GetRasaXURL() (string, error)

GetRasaXURL returns a Rasa X URL.

func (*RasaCtl) GetReleaseStatus

func (r *RasaCtl) GetReleaseStatus(releaseName string) (string, *release.Release, error)

GetReleaseStatus returns project status, helm release, and err for a given helm release name

func (*RasaCtl) InitClients

func (r *RasaCtl) InitClients() error

InitClients initializes clients.

func (*RasaCtl) List

func (r *RasaCtl) List() error

List lists all deployments.

func (*RasaCtl) Logs

func (r *RasaCtl) Logs(args []string) error

func (*RasaCtl) ModelDelete

func (r *RasaCtl) ModelDelete() error

func (*RasaCtl) ModelDownload

func (r *RasaCtl) ModelDownload() error

func (*RasaCtl) ModelList

func (r *RasaCtl) ModelList() error

func (*RasaCtl) ModelTag

func (r *RasaCtl) ModelTag() error

func (*RasaCtl) ModelUpload

func (r *RasaCtl) ModelUpload() error

func (*RasaCtl) SetNamespaceClients

func (r *RasaCtl) SetNamespaceClients(namespace string) error

SetNamespaceClients sets namespace for initialized clients.

func (*RasaCtl) Start

func (r *RasaCtl) Start() error

Start starts a Rasa X / Enterprise deployment.

func (*RasaCtl) Status

func (r *RasaCtl) Status() error

Status prints status for a given deployment.

func (*RasaCtl) Stop

func (r *RasaCtl) Stop() error

Stop stops a deployment.

func (*RasaCtl) Upgrade

func (r *RasaCtl) Upgrade() error

Upgrade upgrades a deployment.

Jump to

Keyboard shortcuts

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