asset

package
Version: v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	AssetType      api.AssetType
	DeliveryType   api.DeliveryType
	Transformation transformation.RawTransformation
	Version        int
	PublicID       string
	Suffix         string
	Config         config.Configuration
	AuthToken      AuthToken
	// contains filtered or unexported fields
}

Asset is the Asset struct.

func File

func File(publicID string, conf *config.Configuration) (*Asset, error)

func Image

func Image(publicID string, conf *config.Configuration) (*Asset, error)

func Media

func Media(publicID string, conf *config.Configuration) (*Asset, error)

func New

func New(publicID string, conf *config.Configuration) (*Asset, error)

func Video

func Video(publicID string, conf *config.Configuration) (*Asset, error)

func (Asset) String

func (a Asset) String() (result string, err error)

String serializes Asset to string.

type AuthToken

type AuthToken struct {
	Config *config.AuthToken
}

func (AuthToken) Generate

func (a AuthToken) Generate(path string) string

Jump to

Keyboard shortcuts

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