endpoints

package
v0.42.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAPIVersionMismatch     = "endpoints.api_version_mismatch"
	ErrHeaderMissing          = "endpoints.header_missing"
	ErrHeaderMalformed        = "endpoints.header_malformed"
	ErrAuthAPIError           = "endpoints.auth_api_error"
	ErrFormFileMustBeProvided = "endpoints.form_file_must_be_provided"
	ErrAuthInvalid            = "endpoints.auth_invalid"
	ErrAuthOtherAccount       = "endpoints.auth_other_account"
	ErrQueryParamRequired     = "endpoints.query_param_required"
	ErrPathParamRequired      = "endpoints.path_param_required"
	ErrAnyQueryParamRequired  = "endpoints.any_query_param_required"
	ErrAnyPathParamRequired   = "endpoints.any_path_param_required"
	ErrLogsJobIDRequired      = "endpoints.logs_job_id_required"
)

Variables

This section is empty.

Functions

func APIVersionCheckMiddleware added in v0.13.0

func APIVersionCheckMiddleware(next http.Handler) http.Handler

func AWSAuthMiddleware added in v0.30.0

func AWSAuthMiddleware(next http.Handler) http.Handler

func ClientIDMiddleware added in v0.13.0

func ClientIDMiddleware(next http.Handler) http.Handler

func Delete

func Delete(w http.ResponseWriter, r *http.Request)

func Deploy

func Deploy(w http.ResponseWriter, r *http.Request)

func DescribeAPI added in v0.40.0

func DescribeAPI(w http.ResponseWriter, r *http.Request)

func ErrorAPIVersionMismatch added in v0.13.0

func ErrorAPIVersionMismatch(operatorVersion string, clientVersion string) error

func ErrorAnyPathParamRequired added in v0.4.0

func ErrorAnyPathParamRequired(param string, params ...string) error

func ErrorAnyQueryParamRequired added in v0.4.0

func ErrorAnyQueryParamRequired(param string, params ...string) error

func ErrorAuthAPIError

func ErrorAuthAPIError() error

func ErrorAuthHeaderMissing

func ErrorAuthHeaderMissing(header, host, url string) error

func ErrorAuthInvalid added in v0.10.0

func ErrorAuthInvalid() error

func ErrorAuthOtherAccount added in v0.10.0

func ErrorAuthOtherAccount() error

func ErrorFormFileMustBeProvided added in v0.4.0

func ErrorFormFileMustBeProvided(fileName string) error

func ErrorHeaderMalformed added in v0.16.0

func ErrorHeaderMalformed(header string) error

func ErrorHeaderMissing added in v0.16.0

func ErrorHeaderMissing(header string) error

func ErrorLogsJobIDRequired added in v0.19.0

func ErrorLogsJobIDRequired(resource operator.DeployedResource) error

func ErrorPathParamRequired added in v0.4.0

func ErrorPathParamRequired(param string) error

func ErrorQueryParamRequired added in v0.4.0

func ErrorQueryParamRequired(param string) error

func GetAPI added in v0.13.0

func GetAPI(w http.ResponseWriter, r *http.Request)

func GetAPIByID added in v0.23.0

func GetAPIByID(w http.ResponseWriter, r *http.Request)

func GetAPIs added in v0.13.0

func GetAPIs(w http.ResponseWriter, r *http.Request)

func GetBatchJob added in v0.27.0

func GetBatchJob(w http.ResponseWriter, r *http.Request)

func GetJobLogURL added in v0.36.0

func GetJobLogURL(w http.ResponseWriter, r *http.Request)

func GetLogURL added in v0.36.0

func GetLogURL(w http.ResponseWriter, r *http.Request)

func GetTaskJob added in v0.27.0

func GetTaskJob(w http.ResponseWriter, r *http.Request)

func Info added in v0.10.0

func Info(w http.ResponseWriter, r *http.Request)

func PanicMiddleware added in v0.13.0

func PanicMiddleware(next http.Handler) http.Handler

func ReadJobLogs added in v0.19.0

func ReadJobLogs(w http.ResponseWriter, r *http.Request)

func ReadLogs

func ReadLogs(w http.ResponseWriter, r *http.Request)

func Refresh added in v0.13.0

func Refresh(w http.ResponseWriter, r *http.Request)

func StopBatchJob added in v0.27.0

func StopBatchJob(w http.ResponseWriter, r *http.Request)

func StopTaskJob added in v0.27.0

func StopTaskJob(w http.ResponseWriter, r *http.Request)

func SubmitBatchJob added in v0.27.0

func SubmitBatchJob(w http.ResponseWriter, r *http.Request)

func SubmitTaskJob added in v0.27.0

func SubmitTaskJob(w http.ResponseWriter, r *http.Request)

func VerifyCortex added in v0.15.0

func VerifyCortex(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL