Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoChanges indicates that there were no changes to commit ErrNoChanges = errors.New("no changes to commit") KubeSSHMountPath = "/etc/riser/kube/ssh/identity" KubeSSHTargetPath = "/etc/riser/ssh/identity" KubeSSHKeyFileMode = os.FileMode(0400) )
Functions ¶
This section is empty.
Types ¶
type FakeRepo ¶ added in v0.0.7
type FakeRepo struct {
CommitFn func(message string, files []core.ResourceFile) error
CommitCallCount int
PushFn func() error
PushCallCount int
ResetHardRemoteFn func() error
ResetHardRemoteCallCount int
sync.Mutex
}
func (*FakeRepo) Commit ¶ added in v0.0.7
func (fake *FakeRepo) Commit(message string, files []core.ResourceFile) error
func (*FakeRepo) ResetHardRemote ¶ added in v0.0.7
type Repo ¶ added in v0.0.7
type Repo interface {
Commit(message string, files []core.ResourceFile) error
Push() error
ResetHardRemote() error
// Lock locks the repo. Be sure to call Unlock when your work is completed.
Lock()
// Unlock unlocks the repo.
Unlock()
}
func InitRepoWorkspace ¶ added in v0.0.44
func InitRepoWorkspace(repoSettings RepoSettings) (Repo, error)
InitRepoWorkspace clones a repo reference into the specified folder and returns a new reference to the repo. If the desired branch does not exist it will be created and pushed to the remote WARNING: Running this against the same instance will result in losing unsynchronized changes
type RepoSettings ¶
Click to show internal directories.
Click to hide internal directories.