Documentation ¶
Index ¶
- Constants
- func DeleteAPI(apiName string, keepCache bool) (*schema.DeleteResponse, error)
- func Deploy(configFileName string, configBytes []byte, force bool) ([]schema.DeployResult, error)
- func DescribeAPI(apiName string) ([]schema.APIResponse, error)
- func ErrorAPIIDNotFound(apiName string, apiID string) error
- func ErrorAPINotDeployed(apiName string) error
- func ErrorAPIUsedByTrafficSplitter(trafficSplitters []string) error
- func ErrorAPIsNotDeployed(notDeployedAPIs []string) error
- func ErrorCannotChangeKindOfDeployedAPI(name string, newKind, prevKind userconfig.Kind) error
- func ErrorInvalidNodeGroupSelector(selected string, availableNodeGroups []string) error
- func ErrorNoAvailableNodeComputeLimit(api *userconfig.API, compute userconfig.Compute, ...) error
- func ErrorNoNodeGroups() error
- func ErrorOperationIsOnlySupportedForKind(resource operator.DeployedResource, supportedKind userconfig.Kind, ...) error
- func ExclusiveFilterAPIsByKind(apis []userconfig.API, kindsToExclude ...userconfig.Kind) []userconfig.API
- func GetAPI(apiName string) ([]schema.APIResponse, error)
- func GetAPIByID(apiName string, apiID string) ([]schema.APIResponse, error)
- func GetAPIs() ([]schema.APIResponse, error)
- func GetDeployedResourceByName(resourceName string) (*operator.DeployedResource, error)
- func GetDeployedResourceByNameOrNil(resourceName string) (*operator.DeployedResource, error)
- func InclusiveFilterAPIsByKind(apis []userconfig.API, kindsToInclude ...userconfig.Kind) []userconfig.API
- func RefreshAPI(apiName string, force bool) (string, error)
- func UpdateAPI(apiConfig *userconfig.API, force bool) (*schema.APIResponse, string, error)
- func ValidateClusterAPIs(apis []userconfig.API) error
Constants ¶
View Source
const ( ErrOperationIsOnlySupportedForKind = "resources.operation_is_only_supported_for_kind" ErrAPINotDeployed = "resources.api_not_deployed" ErrAPIIDNotFound = "resources.api_id_not_found" ErrCannotChangeTypeOfDeployedAPI = "resources.cannot_change_kind_of_deployed_api" ErrNoAvailableNodeComputeLimit = "resources.no_available_node_compute_limit" ErrJobIDRequired = "resources.job_id_required" ErrRealtimeAPIUsedByTrafficSplitter = "resources.realtime_api_used_by_traffic_splitter" ErrAPIsNotDeployed = "resources.apis_not_deployed" ErrInvalidNodeGroupSelector = "resources.invalid_node_group_selector" ErrNoNodeGroups = "resources.no_node_groups" )
Variables ¶
This section is empty.
Functions ¶
func DescribeAPI ¶ added in v0.40.0
func DescribeAPI(apiName string) ([]schema.APIResponse, error)
func ErrorAPIIDNotFound ¶ added in v0.23.0
func ErrorAPINotDeployed ¶
func ErrorAPIsNotDeployed ¶
func ErrorCannotChangeKindOfDeployedAPI ¶
func ErrorCannotChangeKindOfDeployedAPI(name string, newKind, prevKind userconfig.Kind) error
func ErrorInvalidNodeGroupSelector ¶ added in v0.34.0
func ErrorNoAvailableNodeComputeLimit ¶
func ErrorNoAvailableNodeComputeLimit(api *userconfig.API, compute userconfig.Compute, maxMemMap map[string]kresource.Quantity) error
func ErrorNoNodeGroups ¶ added in v0.37.0
func ErrorNoNodeGroups() error
func ErrorOperationIsOnlySupportedForKind ¶
func ErrorOperationIsOnlySupportedForKind(resource operator.DeployedResource, supportedKind userconfig.Kind, supportedKinds ...userconfig.Kind) error
func ExclusiveFilterAPIsByKind ¶
func ExclusiveFilterAPIsByKind(apis []userconfig.API, kindsToExclude ...userconfig.Kind) []userconfig.API
func GetAPIByID ¶ added in v0.23.0
func GetAPIByID(apiName string, apiID string) ([]schema.APIResponse, error)
func GetAPIs ¶
func GetAPIs() ([]schema.APIResponse, error)
func GetDeployedResourceByName ¶
func GetDeployedResourceByName(resourceName string) (*operator.DeployedResource, error)
Returns an error if resource doesn't exist
func GetDeployedResourceByNameOrNil ¶
func GetDeployedResourceByNameOrNil(resourceName string) (*operator.DeployedResource, error)
func InclusiveFilterAPIsByKind ¶
func InclusiveFilterAPIsByKind(apis []userconfig.API, kindsToInclude ...userconfig.Kind) []userconfig.API
InclusiveFilterAPIsByKind includes only provided Kinds
func UpdateAPI ¶
func UpdateAPI(apiConfig *userconfig.API, force bool) (*schema.APIResponse, string, error)
func ValidateClusterAPIs ¶
func ValidateClusterAPIs(apis []userconfig.API) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.