Documentation
¶
Index ¶
- Constants
- func CacheModel(modelPath string, awsClient *aws.Client) (*spec.LocalModelCache, error)
- func Delete(apiName string, keepCache bool) (schema.DeleteResponse, error)
- func DeleteAPI(apiName string, keepCache bool) error
- func DeleteContainers(apiName string) error
- func Deploy(env cliconfig.Environment, absoluteConfigPath string, projectFileList []string) (schema.DeployResponse, error)
- func DeployContainers(api *spec.API, awsClient *aws.Client) error
- func ErrorAPIContainersNotFound(apiName string) error
- func ErrorAPINotDeployed(apiName string) error
- func ErrorAPISpecNotFound(apiName string) error
- func ErrorCortexVersionMismatch(apiName string, apiVersion string) error
- func ErrorDuplicateLocalPort(apiName string) error
- func ErrorFailedToDeleteAPISpec(path string) error
- func ErrorFoundContainersWithoutAPISpec(apiName string) error
- func ErrorInvalidTensorFlowZip() error
- func ErrorNotAbsolutePath(path string) error
- func ErrorPortAlreadyInUse(port int) error
- func ErrorUnableToFindAvailablePorts() error
- func FindAPISpec(apiName string) (*spec.API, error)
- func GetAPI(apiName string) (schema.GetAPIResponse, error)
- func GetAPIMetrics(api *spec.API) (metrics.Metrics, error)
- func GetAPIStatus(api *spec.API) (status.Status, error)
- func GetAPIs() (schema.GetAPIsResponse, error)
- func GetAllRunningContainers() ([]dockertypes.Container, error)
- func GetContainersByAPI(apiName string) ([]dockertypes.Container, error)
- func GetVersionFromAPISpecFilePath(path string) string
- func ListAPISpecs() ([]spec.API, error)
- func ListVersionMismatchedAPIs() ([]string, error)
- func ResetModelCacheDir(modelDir string) error
- func StreamLogs(apiName string) error
- func UpdateAPI(apiConfig *userconfig.API, cortexYAMLPath string, projectID string, ...) (*spec.API, string, error)
- func ValidateLocalAPIs(apis []userconfig.API, projectFiles ProjectFiles, awsClient *aws.Client) error
- type ProjectFiles
Constants ¶
View Source
const ( ErrNotAbsolutePath = "local.not_absolute_path" ErrAPINotDeployed = "local.api_not_deployed" ErrAPISpecNotFound = "local.api_specification_not_found" ErrCortexVersionMismatch = "local.cortex_version_mismatch" ErrAPIContainersNotFound = "local.api_containers_not_found" ErrFoundContainersWithoutAPISpec = "local.found_containers_without_api_spec" ErrInvalidTensorFlowZip = "local.invalid_tensorflow_zip" ErrFailedToDeleteAPISpec = "local.failed_to_delete_api_spec" ErrDuplicateLocalPort = "local.duplicate_local_port" ErrPortAlreadyInUse = "local.port_already_in_use" ErrUnableToFindAvailablePorts = "local.unable_to_find_available_ports" )
Variables ¶
This section is empty.
Functions ¶
func CacheModel ¶
func DeleteContainers ¶
func Deploy ¶
func Deploy(env cliconfig.Environment, absoluteConfigPath string, projectFileList []string) (schema.DeployResponse, error)
func ErrorAPINotDeployed ¶
func ErrorAPISpecNotFound ¶
func ErrorDuplicateLocalPort ¶
func ErrorInvalidTensorFlowZip ¶
func ErrorInvalidTensorFlowZip() error
func ErrorNotAbsolutePath ¶
func ErrorPortAlreadyInUse ¶
func ErrorUnableToFindAvailablePorts ¶
func ErrorUnableToFindAvailablePorts() error
func GetAPIs ¶
func GetAPIs() (schema.GetAPIsResponse, error)
func GetAllRunningContainers ¶
func GetAllRunningContainers() ([]dockertypes.Container, error)
func GetContainersByAPI ¶
func GetContainersByAPI(apiName string) ([]dockertypes.Container, error)
func ListAPISpecs ¶
func ResetModelCacheDir ¶
func StreamLogs ¶
func ValidateLocalAPIs ¶
func ValidateLocalAPIs(apis []userconfig.API, projectFiles ProjectFiles, awsClient *aws.Client) error
Types ¶
type ProjectFiles ¶
type ProjectFiles struct {
// contains filtered or unexported fields
}
func NewProjectFiles ¶
func NewProjectFiles(projectFileList []string, absoluteConfigFilePath string) (ProjectFiles, error)
func (ProjectFiles) GetAllPaths ¶
func (projectFiles ProjectFiles) GetAllPaths() []string
func (ProjectFiles) GetConfigFilePath ¶
func (projectFiles ProjectFiles) GetConfigFilePath() string
Click to show internal directories.
Click to hide internal directories.