Documentation
¶
Index ¶
- Constants
- func DeleteAPI(apiName string, keepCache bool) (*schema.DeleteResponse, error)
- func Deploy(projectBytes []byte, configFileName string, configBytes []byte, force bool) (*schema.DeployResponse, error)
- func ErrorAPIGatewayDisabled(apiGatewayType userconfig.APIGatewayType) 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 ErrorNoAvailableNodeComputeLimit(resource string, reqStr string, maxStr string) 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.GetAPIResponse, error)
- func GetAPIs() (*schema.GetAPIsResponse, 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, projectID string, force bool) (*spec.API, string, error)
- func ValidateClusterAPIs(apis []userconfig.API, projectFiles spec.ProjectFiles) error
- type ProjectFiles
Constants ¶
View Source
const ( ErrOperationIsOnlySupportedForKind = "resources.operation_is_only_supported_for_kind" ErrAPINotDeployed = "resources.api_not_deployed" 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" ErrAPIGatewayDisabled = "resources.api_gateway_disabled" )
Variables ¶
This section is empty.
Functions ¶
func ErrorAPIGatewayDisabled ¶
func ErrorAPIGatewayDisabled(apiGatewayType userconfig.APIGatewayType) error
func ErrorAPINotDeployed ¶
func ErrorAPIsNotDeployed ¶
func ErrorCannotChangeKindOfDeployedAPI ¶
func ErrorCannotChangeKindOfDeployedAPI(name string, newKind, prevKind userconfig.Kind) 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 GetAPIs ¶
func GetAPIs() (*schema.GetAPIsResponse, 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 ValidateClusterAPIs ¶
func ValidateClusterAPIs(apis []userconfig.API, projectFiles spec.ProjectFiles) error
Types ¶
type ProjectFiles ¶
func (ProjectFiles) AllPaths ¶
func (projectFiles ProjectFiles) AllPaths() []string
func (ProjectFiles) HasDir ¶
func (projectFiles ProjectFiles) HasDir(path string) bool
func (ProjectFiles) HasFile ¶
func (projectFiles ProjectFiles) HasFile(path string) bool
func (ProjectFiles) ProjectDir ¶
func (projectFiles ProjectFiles) ProjectDir() string
This should not be called, since it's only relevant for the local environment
Click to show internal directories.
Click to hide internal directories.