Documentation
¶
Index ¶
- type Conf
- func (c *Conf) GetSourceProvider() (constants.IProvider, error)
- func (c *Conf) GetSourceProviderWithRepo() (constants.IProvider, error)
- func (c *Conf) GetTargetProvider() (constants.IProvider, error)
- func (c *Conf) GetTargetProviderWithRepo() (constants.IProvider, error)
- func (c *Conf) VerifyFiles() error
- func (c *Conf) VerifySource() error
- func (c *Conf) VerifyTag() error
- func (c *Conf) VerifyTags() error
- func (c *Conf) VerifyTarget() error
- type GitRepo
- type ReleaseProvider
- type ReleaseProviders
- type RepoProvider
- type Rewriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
Workspace string `json:"workspace" yaml:"workspace"`
SourceRepo string `json:"source_repo" yaml:"source_repo"`
SourceUsername string `json:"source_username" yaml:"source_username"`
SourceToken string `json:"source_token" yaml:"source_token"`
TargetRepo string `json:"target_repo" yaml:"target_repo"`
TargetUsername string `json:"target_username" yaml:"target_username"`
TargetToken string `json:"target_token" yaml:"target_token"`
Force bool `json:"force" yaml:"force"`
Branches []string `json:"branches" yaml:"branches"`
Tags []string `json:"tags" yaml:"tags"`
Tag string `json:"tag" yaml:"tag"`
Files []string `json:"files" yaml:"files"`
Ignores []string `json:"ignore" yaml:"ignore"`
// contains filtered or unexported fields
}
func (*Conf) GetSourceProviderWithRepo ¶
func (*Conf) GetTargetProviderWithRepo ¶
func (*Conf) VerifyFiles ¶
func (*Conf) VerifySource ¶
func (*Conf) VerifyTags ¶
func (*Conf) VerifyTarget ¶
type ReleaseProvider ¶
type ReleaseProvider struct {
// contains filtered or unexported fields
}
func NewReleaseProvider ¶
func NewReleaseProvider(workspace string, provider constants.IProvider) *ReleaseProvider
func (*ReleaseProvider) Create ¶
func (p *ReleaseProvider) Create(tags []string) error
func (*ReleaseProvider) Download ¶
func (this *ReleaseProvider) Download(tag string) (*constants.ReleaseInfo, []string, error)
func (*ReleaseProvider) Upload ¶
func (this *ReleaseProvider) Upload(force bool, releaseInfo *constants.ReleaseInfo, files []string) error
type ReleaseProviders ¶
type ReleaseProviders struct {
// contains filtered or unexported fields
}
func NewReleaseProviders ¶
func (*ReleaseProviders) SyncRun ¶
func (s *ReleaseProviders) SyncRun() error
type RepoProvider ¶
type RepoProvider struct {
Repo string
RepoInfo *constants.RepoInfo
Username string
Token string
// contains filtered or unexported fields
}
func NewRepoProvider ¶
func (*RepoProvider) Clone ¶
func (p *RepoProvider) Clone(cfg *Conf) error
func (*RepoProvider) CreateRepo ¶
func (p *RepoProvider) CreateRepo() error
func (*RepoProvider) GetProvider ¶
func (p *RepoProvider) GetProvider() (constants.IProvider, error)
func (*RepoProvider) Sync ¶
func (p *RepoProvider) Sync(cfg *Conf) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.