Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct { // Spec contains inputs coming from updatecli configuration Spec Spec // contains filtered or unexported fields }
GitHub contains settings to interact with GitHub
type ReleaseType ¶
type ReleaseType struct { /* "Draft" enable/disable GitHub draft release */ Draft bool /* "PreRelease" enable/disable GitHub PreRelease */ PreRelease bool /* "Release" enable/disable GitHub release */ Release bool /* "Latest" if set to true will only filter the release flag as latest. */ Latest bool }
ReleaseType specifies accepted GitHub Release type
type Spec ¶
type Spec struct { /* owner specifies the name of a GitHub user or organization. */ Owner string `yaml:",omitempty" jsonschema:"required"` /* repository specifies the name of a repository for a specific owner. */ Repository string `yaml:",omitempty" jsonschema:"required"` /* TypeFilter specifies the GitHub Release type to retrieve. */ TypeFilter *ReleaseType `yaml:",omitempty"` /* "token" specifies the credential used to authenticate with GitHub API. */ Token string `yaml:",omitempty" jsonschema:"required"` /* url specifies the default github url in case of GitHub enterprise default: github.com */ URL string `yaml:",omitempty"` /* "username" specifies the username used to authenticate with GitHub API. remark: the token is usually enough to authenticate with GitHub API. */ Username string `yaml:",omitempty"` }
Spec represents the configuration input
Click to show internal directories.
Click to hide internal directories.