Documentation
¶
Index ¶
- func Auth(path string) (result upstream.Guard, err error)
- type GitOptions
- type Manifest
- func (m *Manifest) Commit(path, commitMessage string) (err error)
- func (m *Manifest) CreateBranch(branchName string) (err error)
- func (m *Manifest) Decode() error
- func (m *Manifest) Fork() error
- func (m *Manifest) Generate(input map[string]string) (string, error)
- func (m *Manifest) GetBranchName() (name string, err error)
- func (m *Manifest) HaveWriteAccess() (bool, error)
- func (m *Manifest) OpenPR(mainBranch, prTitle, prBody string) error
- func (m *Manifest) Pull() error
- func (m *Manifest) PullBranch(branchName string) (err error)
- func (m *Manifest) Push() (err error)
- func (m *Manifest) Search(path string) (map[string][]string, error)
- func (m *Manifest) SearchPrByBranch(branchName string) error
- func (m *Manifest) SwitchBranch(branchName string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manifest ¶
type Manifest struct { Name string `toml:"name,omitempty"` BootstrapPeers []string `toml:"bootstrap_peers,omitempty"` ClusterKey string `toml:"cluster_key,omitempty"` Replications int64 `toml:"replications,omitempty"` StatsNode string `toml:"stats_node,omitempty"` // contains filtered or unexported fields }
func Init ¶
func Init(path, url string, opts GitOptions) (*Manifest, error)
Init Clones/Pulls a Manifest Repository and Parses the Config
func (*Manifest) CreateBranch ¶
CreateBranch creates a new branch within the input repository.
func (*Manifest) GetBranchName ¶
GetBranchName returns the name of the current branch.
func (*Manifest) HaveWriteAccess ¶
func (*Manifest) PullBranch ¶
PullBranch attempts to pull the branch from the git origin fork.
func (*Manifest) SearchPrByBranch ¶
func (*Manifest) SwitchBranch ¶
SwitchBranch switches from the current branch to the one with the name provided.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.