Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudClient ¶ added in v0.3.22
func NewCloudClient(address, clientID, clientSecret, tokenEndpoint, apiKey string) *cloudModel.Client
NewCloudClient creates a new cloud client with OAuth.
Types ¶
type PluginInstallResult ¶ added in v0.4.4
type PluginInstallResult struct {
PluginURL string
Success bool
InstallError error
EnableError error
ArtifactFound bool
}
PluginInstallResult contains the result of attempting to install a plugin
type PullRequest ¶
type PullRequest struct {
RepoOwner string
RepoName string
FullName string
Number int
Username string
Ref string
Sha string
Labels []string
State string
URL string
CreatedAt time.Time
}
PullRequest defines a pr
func PullRequestFromJSON ¶
func PullRequestFromJSON(data io.Reader) (*PullRequest, error)
PullRequestFromJSON convert from json to the struct
type Spinwick ¶ added in v0.3.21
type Spinwick struct {
RepoName string `json:"repo_name"`
PRNumber int `json:"pr_number"`
RepeatableID string `json:"repeatable_id"`
UniqueID string `json:"unique_id"`
}
Spinwick is a struct that holds identifiable information about a Spinwick instance
func NewSpinwick ¶ added in v0.3.21
NewSpinwick creates a new Spinwick instance, automatically calling the repeatableID and uniqueID methods
Click to show internal directories.
Click to hide internal directories.