modes

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessUrl added in v0.5.0

func ProcessUrl(cdnUrl string, name string, branch string, hash string, hashtype string, filename string) (string, bool)

Given a cdnUrl string as input, return same string, but with substituted template values ( {{.Name}} , {{.Hash}}, {{.Filename}}, etc. )

Types

type GitMode

type GitMode struct{}

func (*GitMode) ImportName

func (g *GitMode) ImportName(pd *data.ProcessData, md *data.ModeData) string

func (*GitMode) PostProcess

func (g *GitMode) PostProcess(md *data.ModeData) error

func (*GitMode) RetrieveSource

func (g *GitMode) RetrieveSource(pd *data.ProcessData) (*data.ModeData, error)

func (*GitMode) WriteSource

func (g *GitMode) WriteSource(pd *data.ProcessData, md *data.ModeData) error

type Lookaside added in v0.5.0

type Lookaside struct {
	Name     string
	Branch   string
	Hash     string
	Hashtype string
	Filename string
}

Struct to define the possible template values ( {{.Value}} in CDN URL strings:

Jump to

Keyboard shortcuts

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