cli

package
v0.9.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCommand

func AuthCommand(c *cli.Context) error

AuthCommand logs into the PodOps service and validates the token

func BuildCommand

func BuildCommand(c *cli.Context) error

BuildCommand starts a new build of the feed

func CreateCommand

func CreateCommand(c *cli.Context) error

CreateCommand creates a resource from a file, directory or URL

func DefaultEpisode added in v0.9.10

func DefaultEpisode(name, parentName, guid, parent, portal, cdn string) *podops.Episode

DefaultEpisode creates a default episode struc

func DefaultEpisodeMetadata added in v0.9.10

func DefaultEpisodeMetadata(guid, parent string) map[string]string

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

func DefaultShow(name, title, summary, guid, portal, cdn string) *podops.Show

DefaultShow creates a default show struc

func DefaultShowMetadata added in v0.9.10

func DefaultShowMetadata(guid string) map[string]string

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

func DeleteResourcesCommand(c *cli.Context) error

DeleteResourcesCommand deletes a resource

func GetResourcesCommand added in v0.9.10

func GetResourcesCommand(c *cli.Context) error

GetResourcesCommand list all resource associated with a show

func ListProductionsCommand added in v0.9.10

func ListProductionsCommand(c *cli.Context) error

ListProductionsCommand retrieves all productions or sets the default production

func LoadConfiguration added in v0.9.10

func LoadConfiguration() *podops.ClientOption

func LoadResource added in v0.9.10

func LoadResource(data []byte) (interface{}, string, string, error)

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

func LoginCommand(c *cli.Context) error

LoginCommand logs into the service

func LogoutCommand

func LogoutCommand(c *cli.Context) error

LogoutCommand clears all session information

func NewProductionCommand

func NewProductionCommand(c *cli.Context) error

NewProductionCommand creates a new podcast

func NoOpCommand

func NoOpCommand(c *cli.Context) error

NoOpCommand is just a placeholder

func SetProductionCommand

func SetProductionCommand(c *cli.Context) error

SetProductionCommand retrieves all productions or sets the default production

func TemplateCommand

func TemplateCommand(c *cli.Context) error

TemplateCommand creates a resource template with all default values

func UpdateCommand

func UpdateCommand(c *cli.Context) error

UpdateCommand updates a resource from a file, directory or URL

func UploadCommand added in v0.9.10

func UploadCommand(c *cli.Context) error

UploadCommand uploads an asset from a file

Types

type ResourceLoaderFunc

type ResourceLoaderFunc func(data []byte) (interface{}, string, error)

ResourceLoaderFunc implements loading of resources

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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