Documentation
¶
Index ¶
- Constants
- func BuildEndpoint(c *gin.Context)
- func DeleteResourceEndpoint(c *gin.Context)
- func GetGraphqlEndpoint() gin.HandlerFunc
- func GetGraphqlPlaygroundEndpoint() gin.HandlerFunc
- func GetResourceEndpoint(c *gin.Context)
- func HandleError(c *gin.Context, status int, e error)
- func ListProductionsEndpoint(c *gin.Context)
- func ListResourcesEndpoint(c *gin.Context)
- func ProductionEndpoint(c *gin.Context)
- func ShowEndpoint(c *gin.Context)
- func UpdateResourceEndpoint(c *gin.Context)
- func UploadEndpoint(c *gin.Context)
Constants ¶
View Source
const ( // NamespacePrefix namespace for the CLI. Should not be used directly. NamespacePrefix = "/a/v1" // GraphqlNamespacePrefix namespace for the GraphQL endpoints GraphqlNamespacePrefix = "/q" // AdminNamespacePrefix namespace for internal admin endpoints AdminNamespacePrefix = "/_a" // TaskNamespacePrefix namespace for internal Cloud Task callbacks TaskNamespacePrefix = "/_t" // AuthenticationRoute is used to create and verify a token AuthenticationRoute = "/token" // ProductionRoute route to ProductionEndpoint ProductionRoute = "/production" // ListProductionsRoute route to ListProductionsEndpoint ListProductionsRoute = "/productions" // GetResourceRoute route to ResourceEndpoint GetResourceRoute = "/resource/:prod/:kind/:id" // ListResourcesRoute route to ResourceEndpoint GET ListResourcesRoute = "/resource/:prod/:kind" // UpdateResourceRoute route to ResourceEndpoint POST,PUT UpdateResourceRoute = "/resource/:prod/:kind/:id" // DeleteResourceRoute route to ResourceEndpoint DeleteResourceRoute = "/resource/:prod/:kind/:id" // BuildRoute route to BuildEndpoint BuildRoute = "/build" // UploadRoute route to UploadEndpoint UploadRoute = "/upload/:prod" // ShowRoute route to show.json ShowRoute = "/s/:name" // FeedRoute route to feed.xml FeedRoute = "/s/:name/feed.xml" // GraphqlRoute route to GraphqlEndpoint GraphqlRoute = "/query" // GraphqlPlaygroundRoute route to GraphqlPlaygroundEndpoint GraphqlPlaygroundRoute = "/playground" )
Variables ¶
This section is empty.
Functions ¶
func DeleteResourceEndpoint ¶
DeleteResourceEndpoint deletes a resource and its .yaml file
func GetGraphqlEndpoint ¶
func GetGraphqlEndpoint() gin.HandlerFunc
GetGraphqlEndpoint maps the Graphql handler to gin
func GetGraphqlPlaygroundEndpoint ¶
func GetGraphqlPlaygroundEndpoint() gin.HandlerFunc
GetGraphqlPlaygroundEndpoint maps the Playground handler to gin
func GetResourceEndpoint ¶
GetResourceEndpoint returns a resource
func HandleError ¶
HandleError is just a convenience method to avoid boiler-plate code
func ListProductionsEndpoint ¶
ListProductionsEndpoint creates an new show and does all the background setup
func ListResourcesEndpoint ¶
ListResourcesEndpoint returns a list of resources
func ProductionEndpoint ¶
ProductionEndpoint creates an new show and does all the background setup
func ShowEndpoint ¶
ShowEndpoint returns the entire show as one json
func UpdateResourceEndpoint ¶
UpdateResourceEndpoint creates or updates a resource
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.