Documentation
¶
Index ¶
- type Deploy
- func (d *Deploy) AddRemote() error
- func (d *Deploy) CheckCurrentBranchIsMaster() error
- func (d *Deploy) CheckUncommittedChanges() (stage string, err error)
- func (d *Deploy) Commit() (commit string, err error)
- func (d *Deploy) GetCurrentBranch() (branch string, err error)
- func (d *Deploy) InitializeRepository() error
- func (d *Deploy) InitializeRepositoryIfNotExists() error
- func (d *Deploy) Push() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deploy ¶
type Deploy struct {
Context context.Context
ProjectID string
Path string
Force bool
Remote string
RepoAuthorization string
GitRemoteAddress string
// contains filtered or unexported fields
}
Deploy project
func (*Deploy) CheckCurrentBranchIsMaster ¶
CheckCurrentBranchIsMaster checks if the current branch is master
func (*Deploy) CheckUncommittedChanges ¶
CheckUncommittedChanges checks for uncommitted changes on the staging area
func (*Deploy) GetCurrentBranch ¶
GetCurrentBranch gets the current branch
func (*Deploy) InitializeRepository ¶
InitializeRepository as a git repo
func (*Deploy) InitializeRepositoryIfNotExists ¶
InitializeRepositoryIfNotExists as a git repo
Click to show internal directories.
Click to hide internal directories.