updateconnector

package
v10.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageConfig

type PackageConfig interface {
	Load() error
	GetTag() string
	Exists() (bool, error)
}

PackageConfig defines the update configuration reader / writer

func NewPackageConfig

func NewPackageConfig(fs afero.Fs) (PackageConfig, error)

NewPackageConfig creates a new instance of PackageConfig

type UpdateConnector

type UpdateConnector interface {
	// NeedsUpdate returns true if the connector needs to updated
	NeedsUpdate(tag string) (bool, error)

	// Do updates the connector
	Do(tag string) error
}

UpdateConnector is an interface to handing updating the connector files

func New

func New(githubSlug, connectorName, dir string, fs afero.Fs, fakeMainLogger logger.MainLogger) (UpdateConnector, error)

New returns an instance of the UpdateConnector

Jump to

Keyboard shortcuts

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