Documentation
¶
Index ¶
- Constants
- func CreateProduction(ctx context.Context, name, title, summary, clientID string) (*a.Production, error)
- func DeleteResource(ctx context.Context, guid string) error
- func FindProductionByName(ctx context.Context, name string) (*a.Production, error)
- func FindProductionsByOwner(ctx context.Context, owner string) ([]*a.Production, error)
- func FindResource(ctx context.Context, parent, name string) (*a.Resource, error)
- func GetProduction(ctx context.Context, guid string) (*a.Production, error)
- func GetResource(ctx context.Context, guid string) (*a.Resource, error)
- func GetResourceContent(ctx context.Context, guid string) (interface{}, error)
- func ListResources(ctx context.Context, parent, kind string) ([]*a.Resource, error)
- func ReadResource(ctx context.Context, path string) (interface{}, string, string, error)
- func RemoveAsset(ctx context.Context, path string) error
- func RemoveResource(ctx context.Context, path string) error
- func UpdateAssetResource(ctx context.Context, name, guid, kind, parent, location, contentType string, ...) error
- func UpdateEpisode(ctx context.Context, location string, episode *a.Episode) error
- func UpdateProduction(ctx context.Context, p *a.Production) error
- func UpdateResource(ctx context.Context, name, guid, kind, parent, location string) error
- func UpdateShow(ctx context.Context, location string, show *a.Show) error
- func WriteResourceContent(ctx context.Context, path string, create, force bool, rsrc interface{}) error
Constants ¶
const (
// DatastoreProductions collection PRODUCTION
DatastoreProductions = "PRODUCTIONS"
)
const (
// DatastoreResources collection RESOURCE
DatastoreResources = "RESOURCES"
)
Variables ¶
This section is empty.
Functions ¶
func CreateProduction ¶
func CreateProduction(ctx context.Context, name, title, summary, clientID string) (*a.Production, error)
CreateProduction initializes a new show and all its metadata
func DeleteResource ¶
DeleteResource deletes a resource and it's backing .yaml file
func FindProductionByName ¶
FindProductionByName does a lookup using the productions name instead of its key
func FindProductionsByOwner ¶
FindProductionsByOwner returns all productions belonging to the same owner
func FindResource ¶
FindResource looks for a resource 'name' in the context of production 'parent'
func GetProduction ¶
GetProduction returns a production based on the GUID
func GetResource ¶
GetResource retrieves a resource
func GetResourceContent ¶
GetResourceContent retrieves a resource file
func ListResources ¶
ListResources returns all resources of type kind belonging to parentID
func ReadResource ¶
ReadResource reads a resource from Cloud Storage
func RemoveAsset ¶
RemoveAsset removes a asset from Cloud Storage
func RemoveResource ¶
RemoveResource removes a resource from Cloud Storage
func UpdateAssetResource ¶
func UpdateAssetResource(ctx context.Context, name, guid, kind, parent, location, contentType string, size int64) error
UpdateAssetResource updates the resource inventory
func UpdateEpisode ¶
UpdateEpisode is a helper function to update a episode resource
func UpdateProduction ¶
func UpdateProduction(ctx context.Context, p *a.Production) error
UpdateProduction does what the name suggests
func UpdateResource ¶
UpdateResource updates the resource inventory
func UpdateShow ¶
UpdateShow is a helper function to update a show resource
Types ¶
This section is empty.