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.
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.
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.
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.
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.
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.
Index ¶
- type RasaX
- func (r *RasaX) Auth(username, password string) (*rtypes.AuthEndpointResponse, error)
- func (r *RasaX) EnterpriseActivate(license string) error
- func (r *RasaX) EnterpriseDeactivate() error
- func (r *RasaX) GetHealthEndpoint() (*rtypes.HealthEndpointsResponse, error)
- func (r *RasaX) GetVersionEndpoint() (*rtypes.VersionEndpointResponse, error)
- func (r *RasaX) ModelDelete() error
- func (r *RasaX) ModelDownload() error
- func (r *RasaX) ModelList() (*rtypes.ModelsListEndpointResponse, error)
- func (r *RasaX) ModelTag() error
- func (r *RasaX) ModelUpload() error
- func (r *RasaX) New()
- func (r *RasaX) SaveEnvironments(body []rtypes.EnvironmentsEndpointRequest) error
- func (r *RasaX) ValidateToken(token string) bool
- func (r *RasaX) WaitForDatabaseMigration(ctx context.Context) error
- func (r *RasaX) WaitForRasaServer(ctx context.Context, environment string) error
- func (r *RasaX) WaitForRasaX() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RasaX ¶
type RasaX struct { // BearerToken stores a bearer token. BearerToken string // Flags defines the command flags. Flags *types.RasaCtlFlags // URL is a Rasa X URL URL string // Token stores a Rasa X admin token. Token string // Log defines logger. Log logr.Logger // Log defines the spinner object. SpinnerMessage *status.SpinnerMessage // WaitTimeout defines timeout for the client. WaitTimeout time.Duration // contains filtered or unexported fields }
RasaX defines Rasa X client.
func (*RasaX) Auth ¶
func (r *RasaX) Auth(username, password string) (*rtypes.AuthEndpointResponse, error)
func (*RasaX) EnterpriseActivate ¶
EnterpriseActivate activates an Enterprise license via the /api/license endpoint.
func (*RasaX) EnterpriseDeactivate ¶
EnterpriseDeactivate deactivates an Enterprise license via the /api/license endpoint.
func (*RasaX) GetHealthEndpoint ¶
func (r *RasaX) GetHealthEndpoint() (*rtypes.HealthEndpointsResponse, error)
GetHealthEndpoint returns a response from the /api/health endpoint.
func (*RasaX) GetVersionEndpoint ¶
func (r *RasaX) GetVersionEndpoint() (*rtypes.VersionEndpointResponse, error)
func (*RasaX) ModelDelete ¶
func (*RasaX) ModelDownload ¶
func (*RasaX) ModelUpload ¶
func (*RasaX) SaveEnvironments ¶
func (r *RasaX) SaveEnvironments(body []rtypes.EnvironmentsEndpointRequest) error
SaveEnvironments add environments to Rasa X via the /environments endpoint. Required Rasa X >= 1.0.
func (*RasaX) ValidateToken ¶
ValidateToken validates token and returns true if a given token is valid.
func (*RasaX) WaitForDatabaseMigration ¶
WaitForDatabaseMigration waits until Rasa X database migration is completed.
func (*RasaX) WaitForRasaServer ¶
WaitForRasaServer waits for Rasa Server in a given environment until it returns the 200 code.
func (*RasaX) WaitForRasaX ¶
WaitForRasaX waits for Rasa X to be fully operational, it includes the WaitForDatabaseMigration and the WaitForRasaXWorker methods.