driver

package
v0.0.0-...-58f5477 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitBucket

type BitBucket struct {
	Owner      string
	Repository string
	Version    string
	Reference  string
	Source     map[string]string
	Dist       map[string]string
	URL        string
	Packages   map[string]composer.JSONData
}

BitBucket bitbucket driver data

func (*BitBucket) GetName

func (bucket *BitBucket) GetName() string

GetName get repository name

func (*BitBucket) GetPackages

func (bucket *BitBucket) GetPackages() map[string]composer.JSONData

GetPackages get composer

func (*BitBucket) GetReference

func (bucket *BitBucket) GetReference() string

GetReference get repository reference

func (*BitBucket) GetSource

func (bucket *BitBucket) GetSource() map[string]string

GetSource get repository source

func (*BitBucket) PrepareBranches

func (bucket *BitBucket) PrepareBranches() error

PrepareBranches prepare repository branches Set to driver `Version`, `VersionNormalized`, `Reference` Set composer json data by version

func (*BitBucket) PrepareMainBranch

func (bucket *BitBucket) PrepareMainBranch() error

PrepareMainBranch prepare main branch Set to driver `Reference`, `Name`

func (*BitBucket) PrepareTags

func (bucket *BitBucket) PrepareTags() error

PrepareTags prepare repository tags Set to driver `Version`, `VersionNormalized`, `Reference` Set composer json data by version

func (*BitBucket) Run

func (bucket *BitBucket) Run() error

Run run bitbucket driver

type Driver

type Driver interface {
	Run() error
	GetName() string
	GetSource() map[string]string
	GetReference() string
	GetPackages() map[string]composer.JSONData

	// PrepareMainBranch prepare main branch
	// Set to driver `Reference`, `Name`
	PrepareMainBranch() error

	// PrepareTags prepare repository tags
	// Set to driver `Version`, `VersionNormalized`, `Reference`
	// Set composer json data by version
	PrepareTags() error

	// PrepareBranches prepare repository branches
	// Set to driver `Version`, `VersionNormalized`, `Reference`
	// Set composer json data by version
	PrepareBranches() error
}

Driver is interface for VCS drivers

type Git

type Git struct {
	Name              string
	RepoDir           string
	Version           string
	VersionNormalized string
	Reference         string
	Source            map[string]string
	Dist              map[string]string
	URL               string
	Packages          map[string]composer.JSONData
}

Git git driver data

func (*Git) GetName

func (git *Git) GetName() string

GetName get repository name

func (*Git) GetPackages

func (git *Git) GetPackages() map[string]composer.JSONData

GetPackages get composer

func (*Git) GetReference

func (git *Git) GetReference() string

GetReference get repository reference

func (*Git) GetSource

func (git *Git) GetSource() map[string]string

GetSource get repository source

func (*Git) PrepareBranches

func (git *Git) PrepareBranches() error

PrepareBranches prepare repository branches Set to driver `Version`, `VersionNormalized`, `Reference` Set composer json data by version

func (*Git) PrepareMainBranch

func (git *Git) PrepareMainBranch() error

PrepareMainBranch prepare main branch Set to driver `Reference`, `Name`

func (*Git) PrepareTags

func (git *Git) PrepareTags() error

PrepareTags prepare repository tags Set to driver `Version`, `VersionNormalized`, `Reference` Set composer json data by version

func (*Git) Run

func (git *Git) Run() error

Run run git driver

Jump to

Keyboard shortcuts

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