Documentation
¶
Index ¶
- Constants
- func AuthorizeAccess(ctx context.Context, c echo.Context, scope string) error
- func AuthorizeAccessProduction(ctx context.Context, c echo.Context, scope, claim string) error
- func AuthorizeAccessResource(ctx context.Context, c echo.Context, scope, claim string) error
- func BuildFeedEndpoint(c echo.Context) error
- func DeleteResourceEndpoint(c echo.Context) error
- func FeedEndpoint(c echo.Context) error
- func FindResourceEndpoint(c echo.Context) error
- func GetResourceEndpoint(c echo.Context) error
- func ImportTaskEndpoint(c echo.Context) error
- func ListProductionsEndpoint(c echo.Context) error
- func ListResourcesEndpoint(c echo.Context) error
- func ProductionEndpoint(c echo.Context) error
- func RedirectCDNContentEndpoint(c echo.Context) error
- func RewriteEpisodeHandler(c echo.Context) error
- func RewriteShowHandler(c echo.Context) error
- func UpdateResourceEndpoint(c echo.Context) error
- func UploadEndpoint(c echo.Context) error
Constants ¶
const ( // NamespacePrefix namespace for the client and CLI 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" // ContentNamespace namespace for thr CDN ContentNamespace = "/c" // LoginRequestRoute route to LoginRequestEndpoint LoginRequestRoute = "/login" // LogoutRequestRoute route to LogoutRequestEndpoint LogoutRequestRoute = "/logout" // LoginConfirmationRoute route to LoginConfirmationEndpoint LoginConfirmationRoute = "/login/:token" // GetAuthorizationRoute route to GetAuthorizationEndpoint GetAuthorizationRoute = "/auth" // ProductionRoute route to ProductionEndpoint ProductionRoute = "/production" // ListProductionsRoute route to ListProductionsEndpoint ListProductionsRoute = "/productions" // FindResourceRoute route to FindResourceEndpoint FindResourceRoute = "/resource/:id" // 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" // ImportTask route to ImportTaskEndpoint ImportTask = "/import" // BuildRoute route to BuildEndpoint BuildRoute = "/build" // UploadRoute route to UploadEndpoint UploadRoute = "/upload/:prod" // ShowRoute route to show.json ShowRoute = "/s/:name" // EpisodeRoute route to show.json EpisodeRoute = "/e/:guid" // FeedRoute route to feed.xml FeedRoute = "/s/:name/feed.xml" // DefaultCDNRoute route to /:guid/:asset DefaultCDNRoute = "/:guid/:asset" // GraphqlRoute route to GraphqlEndpoint GraphqlRoute = "/query" // GraphqlPlaygroundRoute route to GraphqlPlaygroundEndpoint GraphqlPlaygroundRoute = "/playground" )
Variables ¶
This section is empty.
Functions ¶
func AuthorizeAccess ¶ added in v0.9.10
AuthorizeAccess verifies that the user has the required roles in her authorization
func AuthorizeAccessProduction ¶ added in v0.9.10
AuthorizeAccessProduction verifies that the user has the required roles in her authorization and can access the production.
func AuthorizeAccessResource ¶ added in v0.9.10
AuthorizeAccessResource verifies that the user has the required roles in her authorization and can access the resource.
func BuildFeedEndpoint ¶ added in v0.9.10
BuildFeedEndpoint starts the build of the feed
func DeleteResourceEndpoint ¶ added in v0.9.10
DeleteResourceEndpoint deletes a resource and its .yaml file
func FeedEndpoint ¶ added in v0.9.10
FeedEndpoint handles request for feed.xml by redirecting to the public storage bucket
func FindResourceEndpoint ¶ added in v0.9.10
FindResourceEndpoint returns a resource
func GetResourceEndpoint ¶ added in v0.9.10
GetResourceEndpoint returns a resource
func ImportTaskEndpoint ¶ added in v0.9.10
ImportTaskEndpoint implements async file import
func ListProductionsEndpoint ¶ added in v0.9.10
ListProductionsEndpoint list all available shows
func ListResourcesEndpoint ¶ added in v0.9.10
ListResourcesEndpoint returns a list of resources
func ProductionEndpoint ¶ added in v0.9.10
ProductionEndpoint creates an new show and does all the background setup
func RedirectCDNContentEndpoint ¶ added in v0.9.10
RedirectCDNContentEndpoint serves request for content by redirecting to the public Cloud Storage bucket. HEAD, GET are supported operations.
func RewriteEpisodeHandler ¶ added in v0.9.10
RewriteEpisodeHandler rewrites requests from /e/:guid to /e/_id.html
func RewriteShowHandler ¶ added in v0.9.10
RewriteShowHandler rewrites requests from /s/:name to /s/_id.html
func UpdateResourceEndpoint ¶ added in v0.9.10
UpdateResourceEndpoint creates or updates a resource
func UploadEndpoint ¶ added in v0.9.10
UploadEndpoint implements content upload
Types ¶
This section is empty.