git

package
v0.0.0-...-64835f2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONGitCommitConfig

type JSONGitCommitConfig struct {
	Name   string
	Email  string
	Remote string
}

type JSONGitStore

type JSONGitStore struct {
	ClusterName  string
	BasePath     string
	AbsolutePath string
	// contains filtered or unexported fields
}

JSONGitStore exists to save the cluster state as a git change.

func NewJSONGitStore

func NewJSONGitStore(o *JSONGitStoreOptions) *JSONGitStore

func (*JSONGitStore) BytesToCluster

func (git *JSONGitStore) BytesToCluster(bytes []byte) (*cluster.Cluster, error)

func (*JSONGitStore) Commit

func (git *JSONGitStore) Commit(c *cluster.Cluster) error

Performs a git 'commit' and 'push' of the current cluster changes.

func (*JSONGitStore) Destroy

func (git *JSONGitStore) Destroy() error

func (*JSONGitStore) Exists

func (git *JSONGitStore) Exists() bool

func (*JSONGitStore) GetCluster

func (git *JSONGitStore) GetCluster() (*cluster.Cluster, error)

func (*JSONGitStore) List

func (git *JSONGitStore) List() ([]string, error)

func (*JSONGitStore) Read

func (git *JSONGitStore) Read(relativePath string) ([]byte, error)

func (*JSONGitStore) ReadStore

func (git *JSONGitStore) ReadStore() ([]byte, error)

func (*JSONGitStore) Rename

func (git *JSONGitStore) Rename(existingRelativePath, newRelativePath string) error

func (*JSONGitStore) Write

func (git *JSONGitStore) Write(relativePath string, data []byte) error

type JSONGitStoreOptions

type JSONGitStoreOptions struct {
	BasePath     string
	ClusterName  string
	CommitConfig *JSONGitCommitConfig
}

Jump to

Keyboard shortcuts

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