storage

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodingOutputFrom

func EncodingOutputFrom(outputID, path string) model.EncodingOutput

EncodingOutputFrom returns an encoding output from an output ID and path

func NewInput

func NewInput(srcMediaLoc string, api InputAPI, cfg *config.Bitmovin) (inputID string, err error)

NewInput creates an input and returns an inputID and the media path or an error

func NewOutput

func NewOutput(destLoc string, api OutputAPI, cfg *config.Bitmovin) (outputID string, err error)

NewOutput creates an output and returns an outputId and the folder path or an error

func PathFrom

func PathFrom(src string) (string, error)

Types

type GCSInputAPI

type GCSInputAPI interface {
	Create(model.GcsInput) (*model.GcsInput, error)
}

GCSInputAPI manages media inputs with Google Cloud Storage

type GCSOutputAPI

type GCSOutputAPI interface {
	Create(model.GcsOutput) (*model.GcsOutput, error)
}

GCSOutputAPI manages media outputs with Google Cloud Storage

type HTTPInputAPI

type HTTPInputAPI interface {
	Create(model.HttpInput) (*model.HttpInput, error)
}

HTTPInputAPI manages media inputs from HTTP sources

type HTTPSInputAPI

type HTTPSInputAPI interface {
	Create(model.HttpsInput) (*model.HttpsInput, error)
}

HTTPSInputAPI manages media inputs from HTTPS sources

type InputAPI

type InputAPI struct {
	S3    S3InputAPI
	GCS   GCSInputAPI
	HTTP  HTTPInputAPI
	HTTPS HTTPSInputAPI
}

InputAPI holds a collection of media input APIs

type OutputAPI

type OutputAPI struct {
	S3  S3OutputAPI
	GCS GCSOutputAPI
}

OutputAPI holds a collection of media output APIs

type S3InputAPI

type S3InputAPI interface {
	Create(model.S3Input) (*model.S3Input, error)
}

S3InputAPI manages media inputs with AWS S3

type S3OutputAPI

type S3OutputAPI interface {
	Create(model.S3Output) (*model.S3Output, error)
}

S3OutputAPI manages media outputs with AWS S3

Jump to

Keyboard shortcuts

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