apiv1

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
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

func AuthorizeAccess(ctx context.Context, c echo.Context, scope string) error

AuthorizeAccess verifies that the user has the required roles in her authorization

func AuthorizeAccessProduction added in v0.9.10

func AuthorizeAccessProduction(ctx context.Context, c echo.Context, scope, claim string) error

AuthorizeAccessProduction verifies that the user has the required roles in her authorization and can access the production.

func AuthorizeAccessResource added in v0.9.10

func AuthorizeAccessResource(ctx context.Context, c echo.Context, scope, claim string) error

AuthorizeAccessResource verifies that the user has the required roles in her authorization and can access the resource.

func BuildFeedEndpoint added in v0.9.10

func BuildFeedEndpoint(c echo.Context) error

BuildFeedEndpoint starts the build of the feed

func DeleteResourceEndpoint added in v0.9.10

func DeleteResourceEndpoint(c echo.Context) error

DeleteResourceEndpoint deletes a resource and its .yaml file

func FeedEndpoint added in v0.9.10

func FeedEndpoint(c echo.Context) error

FeedEndpoint handles request for feed.xml by redirecting to the public storage bucket

func FindResourceEndpoint added in v0.9.10

func FindResourceEndpoint(c echo.Context) error

FindResourceEndpoint returns a resource

func GetResourceEndpoint added in v0.9.10

func GetResourceEndpoint(c echo.Context) error

GetResourceEndpoint returns a resource

func ImportTaskEndpoint added in v0.9.10

func ImportTaskEndpoint(c echo.Context) error

ImportTaskEndpoint implements async file import

func ListProductionsEndpoint added in v0.9.10

func ListProductionsEndpoint(c echo.Context) error

ListProductionsEndpoint list all available shows

func ListResourcesEndpoint added in v0.9.10

func ListResourcesEndpoint(c echo.Context) error

ListResourcesEndpoint returns a list of resources

func ProductionEndpoint added in v0.9.10

func ProductionEndpoint(c echo.Context) error

ProductionEndpoint creates an new show and does all the background setup

func RedirectCDNContentEndpoint added in v0.9.10

func RedirectCDNContentEndpoint(c echo.Context) error

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

func RewriteEpisodeHandler(c echo.Context) error

RewriteEpisodeHandler rewrites requests from /e/:guid to /e/_id.html

func RewriteShowHandler added in v0.9.10

func RewriteShowHandler(c echo.Context) error

RewriteShowHandler rewrites requests from /s/:name to /s/_id.html

func UpdateResourceEndpoint added in v0.9.10

func UpdateResourceEndpoint(c echo.Context) error

UpdateResourceEndpoint creates or updates a resource

func UploadEndpoint added in v0.9.10

func UploadEndpoint(c echo.Context) error

UploadEndpoint implements content upload

Types

This section is empty.

Jump to

Keyboard shortcuts

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