Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoubleRepo ¶
type DoubleRepo struct {
// contains filtered or unexported fields
}
DoubleRepo represents a repository sync context between a source and a target repository. It contains context, CLI command, source and target platforms, credentials, and repository full names.
func NewDoubleRepo ¶
NewDoubleRepo initializes a DoubleRepo instance with source and target repository information. It sets up the context, CLI command, credentials, platform interfaces, and full repository names.
func (*DoubleRepo) ReleaseSync ¶
func (t *DoubleRepo) ReleaseSync(tags []string) error
ReleaseSync synchronizes releases from the source repository to the target repository. It can optionally filter by specific tags provided in the `tags` slice. Parameters:
- tags: a slice of tag names to be synchronized. If empty, all tags will be considered.
Returns:
- error: any error encountered during the synchronization process.
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func NewCmdDoubleGit ¶
NewCmdDoubleGit creates a new Git instance based on CLI command flags and credentials. It initializes the source and target repository information, including authentication and full repository names.
func NewCredentialGit ¶
func NewCredentialGit(cmd *cli.Command, credential *credential.Credential) (*Git, error)
func NewDoubleCredentialGit ¶
func NewDoubleCredentialGit(cmd *cli.Command, credential *credential.Credential, targetCredential *credential.Credential) (*Git, error)
NewDoubleCredentialGit creates a new Git instance using provided source and target credentials. It initializes the workspace, branches, tags, and parses the full names of source and target repositories.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents a repository with context, CLI command, URL, platform, credentials, and full name.
func NewRepo ¶
NewRepo creates a new Repo instance based on the CLI command flags and credentials. It initializes the repository URL, authentication credentials, platform, and full repository name.