cublib

package
v0.0.0-...-7b160e0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCert

func GetCert(statedir string, uri string) (string, error)

func GetEncodedBundleName

func GetEncodedBundleName(url string, name string) string

func GetFormat

func GetFormat() (string, error)

func GetLock

func GetLock(statedir string)

Take lock for a given statedir, causes program to exit if it would fail to get the lock.

func GetVersion

func GetVersion(uri string, statedir string) (string, error)

func PostProcess

func PostProcess(statedir string, contentdir string) error

func ReleaseLock

func ReleaseLock(statedir string)

func WriteConfig

func WriteConfig(outPath string, config TomlConfig, overwrite bool) error

Types

type BundleConfig

type BundleConfig struct {
	Name        string
	Description string
	Includes    []string
	URL         string
	Bin         []string
}

type TomlConfig

type TomlConfig struct {
	Bundle BundleConfig
}

func GetConfig

func GetConfig(uri string) (TomlConfig, error)

func ReadConfig

func ReadConfig(buffer io.Reader) (TomlConfig, error)

Jump to

Keyboard shortcuts

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