Documentation
¶
Index ¶
- Constants
- func BadRequest(w http.ResponseWriter, req *http.Request, log logging.Logger, err error)
- func DeleteConfigurationHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func DeleteCredentialHandlerFunc(log logging.Logger) http.HandlerFunc
- func DeleteDeploymentHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func GetAccountHandlerFunc(lister accounts.AccountList, log logging.Logger) http.HandlerFunc
- func GetAccountsHandlerFunc(lister accounts.AccountList, log logging.Logger) http.HandlerFunc
- func GetConfigFilesHandlerFunc(base util.AbsolutePath, filesService files.FilesService, log logging.Logger) http.HandlerFunc
- func GetConfigurationHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func GetConfigurationsHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func GetCredentialHandlerFunc(log logging.Logger) http.HandlerFunc
- func GetCredentialsHandlerFunc(log logging.Logger) http.HandlerFunc
- func GetDeploymentHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func GetDeploymentsHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func GetEntrypointsHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func GetFileHandlerFunc(base util.AbsolutePath, filesService files.FilesService, ...) http.HandlerFunc
- func InternalError(w http.ResponseWriter, req *http.Request, log logging.Logger, err error)
- func MethodNotAllowed(w http.ResponseWriter, req *http.Request, log logging.Logger)
- func NewGetConfigPythonPackagesHandler(base util.AbsolutePath, log logging.Logger) *getConfigPythonPackagesHandler
- func NewGetConfigRPackagesHandler(base util.AbsolutePath, log logging.Logger) *getConfigRPackagesHandler
- func NotFound(w http.ResponseWriter, log logging.Logger, err error)
- func PatchDeploymentHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func PostAccountVerifyHandlerFunc(lister accounts.AccountList, log logging.Logger) http.HandlerFunc
- func PostConfigFilesHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func PostCredentialFuncHandler(log logging.Logger) http.HandlerFunc
- func PostDeploymentHandlerFunc(base util.AbsolutePath, log logging.Logger, accountList accounts.AccountList, ...) http.HandlerFunc
- func PostDeploymentsHandlerFunc(base util.AbsolutePath, log logging.Logger, accountList accounts.AccountList) http.HandlerFunc
- func PostInspectHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func PostTestCredentialsHandlerFunc(log logging.Logger) http.HandlerFunc
- func ProjectDirFromRequest(base util.AbsolutePath, w http.ResponseWriter, req *http.Request, ...) (util.AbsolutePath, util.RelativePath, error)
- func PutConfigurationHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
- func RouterHandlerFunc(base util.AbsolutePath, lister accounts.AccountList, log logging.Logger, ...) http.HandlerFunc
- func ToPath(elements ...string) string
- type MockFilesService
- type MockPathsService
- type PatchDeploymentRequestBody
- type PostAccountVerifyResponse
- type PostCredentialsRequest
- type PostCredentialsResponse
- type PostDeploymentRequestBody
- type PostDeploymentsReponse
- type PostDeploymentsRequestBody
- type PostPackagesPythonScanHandler
- type PostPackagesPythonScanRequest
- type PostPackagesRScanHandler
- type PostPackagesRScanRequest
- type PostTestCredentialsRequestBody
- type PostTestCredentialsResponseBody
- type Service
Constants ¶
View Source
const APIPrefix string = "api"
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func DeleteConfigurationHandlerFunc ¶
func DeleteConfigurationHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func DeleteCredentialHandlerFunc ¶
func DeleteCredentialHandlerFunc(log logging.Logger) http.HandlerFunc
func DeleteDeploymentHandlerFunc ¶
func DeleteDeploymentHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func GetAccountHandlerFunc ¶
func GetAccountHandlerFunc(lister accounts.AccountList, log logging.Logger) http.HandlerFunc
GetAccountHandlerFunc returns a handler for the Get Account (by name) endpoint.
func GetAccountsHandlerFunc ¶
func GetAccountsHandlerFunc(lister accounts.AccountList, log logging.Logger) http.HandlerFunc
GetAccountsHandlerFunc returns a handler for the account list.
func GetConfigFilesHandlerFunc ¶
func GetConfigFilesHandlerFunc(base util.AbsolutePath, filesService files.FilesService, log logging.Logger) http.HandlerFunc
func GetConfigurationHandlerFunc ¶
func GetConfigurationHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func GetConfigurationsHandlerFunc ¶
func GetConfigurationsHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func GetCredentialHandlerFunc ¶
func GetCredentialHandlerFunc(log logging.Logger) http.HandlerFunc
func GetCredentialsHandlerFunc ¶
func GetCredentialsHandlerFunc(log logging.Logger) http.HandlerFunc
func GetDeploymentHandlerFunc ¶
func GetDeploymentHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func GetDeploymentsHandlerFunc ¶
func GetDeploymentsHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func GetEntrypointsHandlerFunc ¶ added in v1.1.5
func GetEntrypointsHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func GetFileHandlerFunc ¶
func GetFileHandlerFunc(base util.AbsolutePath, filesService files.FilesService, pathsService paths.PathsService, log logging.Logger) http.HandlerFunc
func InternalError ¶
func MethodNotAllowed ¶
func NewGetConfigPythonPackagesHandler ¶
func NewGetConfigPythonPackagesHandler(base util.AbsolutePath, log logging.Logger) *getConfigPythonPackagesHandler
func NewGetConfigRPackagesHandler ¶
func NewGetConfigRPackagesHandler(base util.AbsolutePath, log logging.Logger) *getConfigRPackagesHandler
func PatchDeploymentHandlerFunc ¶
func PatchDeploymentHandlerFunc( base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func PostAccountVerifyHandlerFunc ¶
func PostAccountVerifyHandlerFunc(lister accounts.AccountList, log logging.Logger) http.HandlerFunc
func PostConfigFilesHandlerFunc ¶
func PostConfigFilesHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func PostCredentialFuncHandler ¶
func PostCredentialFuncHandler(log logging.Logger) http.HandlerFunc
func PostDeploymentHandlerFunc ¶
func PostDeploymentHandlerFunc( base util.AbsolutePath, log logging.Logger, accountList accounts.AccountList, emitter events.Emitter) http.HandlerFunc
func PostDeploymentsHandlerFunc ¶
func PostDeploymentsHandlerFunc( base util.AbsolutePath, log logging.Logger, accountList accounts.AccountList) http.HandlerFunc
func PostInspectHandlerFunc ¶
func PostInspectHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func PostTestCredentialsHandlerFunc ¶
func PostTestCredentialsHandlerFunc(log logging.Logger) http.HandlerFunc
func ProjectDirFromRequest ¶
func ProjectDirFromRequest(base util.AbsolutePath, w http.ResponseWriter, req *http.Request, log logging.Logger) (util.AbsolutePath, util.RelativePath, error)
ProjectDirFromRequest returns the project directory from the request query parameter "dir". If the directory does not exist, it returns a 404. If the directory is not a subdirectory of the base directory, it returns a 400. Other errors return a 500.
func PutConfigurationHandlerFunc ¶
func PutConfigurationHandlerFunc(base util.AbsolutePath, log logging.Logger) http.HandlerFunc
func RouterHandlerFunc ¶
func RouterHandlerFunc(base util.AbsolutePath, lister accounts.AccountList, log logging.Logger, eventServer *sse.Server, emitter events.Emitter) http.HandlerFunc
Types ¶
type MockFilesService ¶
type MockFilesService struct { mock.Mock files.FilesService }
func (*MockFilesService) GetFile ¶
func (m *MockFilesService) GetFile(p util.AbsolutePath, matchList matcher.MatchList) (*files.File, error)
type MockPathsService ¶
type MockPathsService struct { mock.Mock paths.PathsService }
func (*MockPathsService) IsSafe ¶
func (m *MockPathsService) IsSafe(p util.AbsolutePath) (bool, error)
type PatchDeploymentRequestBody ¶
type PatchDeploymentRequestBody struct {
ConfigName string `json:"configurationName"`
}
type PostCredentialsRequest ¶
type PostCredentialsResponse ¶
type PostCredentialsResponse = credentials.Credential
type PostDeploymentsReponse ¶
type PostDeploymentsReponse struct {
LocalID state.LocalDeploymentID `json:"localId"` // Unique ID of this publishing operation. Only valid for this run of the agent.
}
type PostPackagesPythonScanHandler ¶
type PostPackagesPythonScanHandler struct {
// contains filtered or unexported fields
}
func NewPostPackagesPythonScanHandler ¶
func NewPostPackagesPythonScanHandler(base util.AbsolutePath, log logging.Logger) *PostPackagesPythonScanHandler
func (*PostPackagesPythonScanHandler) ServeHTTP ¶
func (h *PostPackagesPythonScanHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type PostPackagesRScanHandler ¶
type PostPackagesRScanHandler struct {
// contains filtered or unexported fields
}
func NewPostPackagesRScanHandler ¶
func NewPostPackagesRScanHandler(base util.AbsolutePath, log logging.Logger) *PostPackagesRScanHandler
func (*PostPackagesRScanHandler) ServeHTTP ¶
func (h *PostPackagesRScanHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type PostPackagesRScanRequest ¶
type PostPackagesRScanRequest struct {
SaveName string `json:"saveName"`
}
type PostTestCredentialsResponseBody ¶
type PostTestCredentialsResponseBody struct { User *connect.User `json:"user"` Error *types.AgentError `json:"error"` }
Source Files
¶
- api_helpers.go
- api_service.go
- delete_configuration.go
- delete_credentials.go
- delete_deployment.go
- deployment_dto.go
- get_account.go
- get_accounts.go
- get_config_files.go
- get_config_python_packages.go
- get_config_r_packages.go
- get_configuration.go
- get_configurations.go
- get_credential.go
- get_credentials.go
- get_deployment.go
- get_deployments.go
- get_entrypoints.go
- get_file.go
- http_service.go
- patch_deployment.go
- post_account_verify.go
- post_config_files.go
- post_credentials.go
- post_deployment.go
- post_deployments.go
- post_inspect.go
- post_packages_python_scan.go
- post_packages_r_scan.go
- post_test_credentials.go
- put_configuration.go
- test.go
Click to show internal directories.
Click to hide internal directories.