core

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExtracter

func GetExtracter(fpath string) archiver.Archiver

GetExtracter The PR hasn't been released into a new version, so we're putting it here https://github.com/mholt/archiver/pull/45/files

func GetLatestRelease

func GetLatestRelease(
	githubClient *github.Client,
	githubOrg string,
	githubProject string,
) (
	latestRelease *github.RepositoryRelease,
	err error,
)

GetLatestRelease - Return the latest release of the repository

func GetOSArchFromFilename

func GetOSArchFromFilename(name string, fileName string) (operatingSystem string, architecture string, valid bool)

GetOSArchFromFilename - Extract the os and arch from the file name Expecting the filename to be of the format `{name}-{os}-{arch}.{tgz|zip}`

func Update

func Update(currentVersion string, noPrompt bool)

Update kombustion with the latest release on Github

Types

type FileSystemStore added in v0.3.5

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

func NewFilesystemStore added in v0.3.5

func NewFilesystemStore(basedir string) *FileSystemStore

func (*FileSystemStore) Get added in v0.3.5

func (fs *FileSystemStore) Get(path string, subpath ...string) ([]byte, error)

func (*FileSystemStore) Put added in v0.3.5

func (fs *FileSystemStore) Put(data []byte, path string, subpath ...string) error

type ObjectStore added in v0.3.5

type ObjectStore interface {
	Get(string, ...string) ([]byte, error)
	Put([]byte, string, ...string) error
}

type S3ObjectStore added in v0.3.5

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

func NewS3ObjectStore added in v0.3.5

func NewS3ObjectStore(bucket, prefix string) *S3ObjectStore

func (*S3ObjectStore) Get added in v0.3.5

func (store *S3ObjectStore) Get(objpath string, subpath ...string) ([]byte, error)

func (*S3ObjectStore) Put added in v0.3.5

func (store *S3ObjectStore) Put(data []byte, objpath string, subpath ...string) error

Jump to

Keyboard shortcuts

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