Documentation
¶
Index ¶
- Variables
- func AuthMethodNames() []string
- func RemoteTypeNames() []string
- type AuthMethod
- type Config
- type GitRepo
- func (g *GitRepo) CommitsSinceHash(hashStr string) ([]string, error)
- func (g *GitRepo) ForcePushTags() error
- func (g *GitRepo) GetHashForBranch(branch string) (string, error)
- func (g *GitRepo) IsTagbotDisabled() (bool, error)
- func (g *GitRepo) LatestTag() (*Tag, error)
- func (g *GitRepo) MakeTagHead(name string) error
- func (g *GitRepo) PushTags() error
- func (g *GitRepo) RemakeTagHead(name string) error
- type RemoteType
- type Repo
- type Tag
Constants ¶
This section is empty.
Variables ¶
var AuthToRemoteMap = map[AuthMethod]RemoteType{ AuthMethodToken: RemoteTypeHttps, AuthMethodPublicKey: RemoteTypeSsh, }
var ErrInvalidAuthMethod = fmt.Errorf("not a valid AuthMethod, try [%s]", strings.Join(_AuthMethodNames, ", "))
var ErrInvalidRemoteType = fmt.Errorf("not a valid RemoteType, try [%s]", strings.Join(_RemoteTypeNames, ", "))
Functions ¶
func AuthMethodNames ¶
func AuthMethodNames() []string
AuthMethodNames returns a list of possible string values of AuthMethod.
func RemoteTypeNames ¶
func RemoteTypeNames() []string
RemoteTypeNames returns a list of possible string values of RemoteType.
Types ¶
type AuthMethod ¶
type AuthMethod string
ENUM( public-key token )
const ( // AuthMethodPublicKey is a AuthMethod of type public-key. AuthMethodPublicKey AuthMethod = "public-key" // AuthMethodToken is a AuthMethod of type token. AuthMethodToken AuthMethod = "token" )
func ParseAuthMethod ¶
func ParseAuthMethod(name string) (AuthMethod, error)
ParseAuthMethod attempts to convert a string to a AuthMethod.
func (AuthMethod) IsValid ¶
func (x AuthMethod) IsValid() bool
String implements the Stringer interface.
func (AuthMethod) MarshalText ¶
func (x AuthMethod) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (AuthMethod) String ¶
func (x AuthMethod) String() string
String implements the Stringer interface.
func (*AuthMethod) UnmarshalText ¶
func (x *AuthMethod) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type GitRepo ¶
type GitRepo struct {
// contains filtered or unexported fields
}
func NewGitRepo ¶
func (*GitRepo) CommitsSinceHash ¶
func (*GitRepo) ForcePushTags ¶
func (*GitRepo) GetHashForBranch ¶
func (*GitRepo) IsTagbotDisabled ¶
func (*GitRepo) MakeTagHead ¶
func (*GitRepo) RemakeTagHead ¶
type RemoteType ¶
type RemoteType string
ENUM( ssh https )
const ( // RemoteTypeSsh is a RemoteType of type ssh. RemoteTypeSsh RemoteType = "ssh" // RemoteTypeHttps is a RemoteType of type https. RemoteTypeHttps RemoteType = "https" )
func ParseRemoteType ¶
func ParseRemoteType(name string) (RemoteType, error)
ParseRemoteType attempts to convert a string to a RemoteType.
func (RemoteType) IsValid ¶
func (x RemoteType) IsValid() bool
String implements the Stringer interface.
func (RemoteType) MarshalText ¶
func (x RemoteType) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (RemoteType) String ¶
func (x RemoteType) String() string
String implements the Stringer interface.
func (*RemoteType) UnmarshalText ¶
func (x *RemoteType) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.