config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEncryptedKey = errors.New("private keys with passphrases are not supported")

Functions

This section is empty.

Types

type GitProvider

type GitProvider struct {
	VersionRoot string
	URI         string
	Branch      string
	PrivateKey  string
	Username    string
	Password    string
	Depth       string
	Path        string
}

func (*GitProvider) GetVersionInfo

func (provider *GitProvider) GetVersionInfo(revision, productName string) (*types.VersionInfo, error)

GetVersionInfo - Check returns version of git resource

func (*GitProvider) LatestVersion

func (provider *GitProvider) LatestVersion() (*types.Version, error)

LatestVersion - Check returns version of git resource

type Provider

type Provider interface {
	LatestVersion() (*types.Version, error)
	GetVersionInfo(revision, productName string) (*types.VersionInfo, error)
}

Provider - defines the interface for how to fetch configuration

func FromSource

func FromSource(source types.Source) (Provider, error)

FromSource - factory to return appropriate driver based on configuration

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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