model

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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

func (*PullRequest) ToJSON

func (o *PullRequest) ToJSON() (string, error)

ToJSON converts to json

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

func NewSpinwick(repoName string, prNumber int, baseDomain string) *Spinwick

NewSpinwick creates a new Spinwick instance, automatically calling the repeatableID and uniqueID methods

func (*Spinwick) DNS added in v0.3.21

func (s *Spinwick) DNS(baseDomain string) string

DNS Generates a DNS name based on the unique ID and a base domain

func (*Spinwick) URL added in v0.3.21

func (s *Spinwick) URL(baseDomain string) string

URL Generates a URL based on the DNS name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL