Documentation
¶
Index ¶
- func AuthCommand(c *cli.Context) error
- func BuildCommand(c *cli.Context) error
- func CreateCommand(c *cli.Context) error
- func DefaultEpisode(name, parentName, guid, parent, portal, cdn string) *podops.Episode
- func DefaultEpisodeMetadata(guid, parent string) map[string]string
- func DefaultShow(name, title, summary, guid, portal, cdn string) *podops.Show
- func DefaultShowMetadata(guid string) map[string]string
- func DeleteResourcesCommand(c *cli.Context) error
- func GetResourcesCommand(c *cli.Context) error
- func ListProductionsCommand(c *cli.Context) error
- func LoadResource(data []byte) (interface{}, string, string, error)
- func LoadResourceMetadata(data []byte) (*podops.ResourceMetadata, error)
- func LoginCommand(c *cli.Context) error
- func LogoutCommand(c *cli.Context) error
- func NewProductionCommand(c *cli.Context) error
- func NoOpCommand(c *cli.Context) error
- func SetProductionCommand(c *cli.Context) error
- func TemplateCommand(c *cli.Context) error
- func UpdateCommand(c *cli.Context) error
- func UploadCommand(c *cli.Context) error
- type ResourceLoaderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthCommand ¶
AuthCommand logs into the PodOps service and validates the token
func BuildCommand ¶
BuildCommand starts a new build of the feed
func CreateCommand ¶
CreateCommand creates a resource from a file, directory or URL
func DefaultEpisode ¶ added in v0.9.10
DefaultEpisode creates a default episode struc
func DefaultEpisodeMetadata ¶ added in v0.9.10
DefaultEpisodeMetadata creates a default set of labels etc for a Episode resource
guid: <unique id> 'item.guid' date: <publish date> REQUIRED 'item.pubDate' season: <season number> OPTIONAL 'item.itunes.season' episode: <episode number> REQUIRED 'item.itunes.episode' explicit: True | False REQUIRED 'channel.itunes.explicit' type: Full | Trailer | Bonus REQUIRED 'item.itunes.episodeType' block: Yes OPTIONAL 'item.itunes.block' Anything else than 'Yes' has no effect
func DefaultShow ¶ added in v0.9.10
DefaultShow creates a default show struc
func DefaultShowMetadata ¶ added in v0.9.10
DefaultShowMetadata creates a default set of labels etc for a Show resource
language: <ISO639 two-letter-code> REQUIRED 'channel.language' explicit: True | False REQUIRED 'channel.itunes.explicit' type: Episodic | Serial REQUIRED 'channel. itunes.type' block: Yes OPTIONAL 'channel.itunes.block' Anything else than 'Yes' has no effect complete: Yes OPTIONAL 'channel.itunes.complete' Anything else than 'Yes' has no effect
func DeleteResourcesCommand ¶ added in v0.9.10
DeleteResourcesCommand deletes a resource
func GetResourcesCommand ¶ added in v0.9.10
GetResourcesCommand list all resource associated with a show
func ListProductionsCommand ¶ added in v0.9.10
ListProductionsCommand retrieves all productions or sets the default production
func LoadResource ¶ added in v0.9.10
LoadResource takes a byte array and determines its kind before unmarshalling it into its struct form
func LoadResourceMetadata ¶ added in v0.9.10
func LoadResourceMetadata(data []byte) (*podops.ResourceMetadata, error)
LoadResourceMetadata reads only the metadata of a resource
func LoginCommand ¶ added in v0.9.10
LoginCommand logs into the service
func LogoutCommand ¶
LogoutCommand clears all session information
func NewProductionCommand ¶
NewProductionCommand creates a new podcast
func SetProductionCommand ¶
SetProductionCommand retrieves all productions or sets the default production
func TemplateCommand ¶
TemplateCommand creates a resource template with all default values
func UpdateCommand ¶
UpdateCommand updates a resource from a file, directory or URL
func UploadCommand ¶ added in v0.9.10
UploadCommand uploads an asset from a file
Types ¶
type ResourceLoaderFunc ¶
ResourceLoaderFunc implements loading of resources