assets

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 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 {
	// contains filtered or unexported fields
}

Asset struct

func NewAsset

func NewAsset(repository string, assetConfig config.Asset, algorithm string) (*Asset, error)

NewAsset from a config

func (*Asset) GetName

func (a *Asset) GetName() string

GetName of asset

func (*Asset) GetPath

func (a *Asset) GetPath() (string, error)

GetPath where the file is located, if zipped true, it will compress it and give you the new location

func (*Asset) IsCompressed

func (a *Asset) IsCompressed() bool

IsCompressed return true if file was zipped

func (*Asset) ZipFile added in v1.4.1

func (a *Asset) ZipFile() (string, error)

ZipFile compress given file in zip format

type Set

type Set struct {
	// contains filtered or unexported fields
}

Set struct

func New

func New(repository, algorithm string) *Set

New container for assets

func (*Set) Add

func (s *Set) Add(assetConfigs ...config.Asset) error

Add assets to the list

func (*Set) All

func (s *Set) All() []*Asset

func (*Set) GenerateChecksum

func (s *Set) GenerateChecksum() error

Jump to

Keyboard shortcuts

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