Help us shape the future of Go! Take the 2026 Go Developer Survey

pipeline

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL    string
	OrgID      string
	Store      *authutil.SessionStore
	Clerk      *authutil.ClerkClient
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL, organizationID string, store *authutil.SessionStore, clerk *authutil.ClerkClient) *Client

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, request CreateProjectRequest) (*CreatedProject, error)

func (*Client) EnableSite

func (c *Client) EnableSite(ctx context.Context, siteID int) error

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context) ([]Project, error)

func (*Client) ListWorkflowTemplates

func (c *Client) ListWorkflowTemplates(ctx context.Context) ([]WorkflowTemplate, error)

func (*Client) SyncProject

func (c *Client) SyncProject(ctx context.Context, projectID int) (*SyncResult, error)

type CreateProjectRequest

type CreateProjectRequest struct {
	Name                 string      `json:"name"`
	SiteID               int         `json:"siteId"`
	DeployApprovalMode   string      `json:"deployApprovalMode"`
	Git                  GitSettings `json:"git"`
	DefaultBuildPlanID   int         `json:"defaultBuildPlanId"`
	EnvironmentVariables []any       `json:"environmentVariables"`
}

type CreatedProject

type CreatedProject struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	ProjectName string `json:"projectName"`
	SiteID      *int   `json:"siteId"`
}

type GitSettings

type GitSettings struct {
	URL       string `json:"url"`
	Type      string `json:"type"`
	Branch    string `json:"branch"`
	Directory string `json:"directory,omitempty"`
}

type Project

type Project struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	SiteID *int   `json:"siteId"`
}

type SyncResult

type SyncResult struct {
	EvaluatedProjects    int `json:"evaluatedProjects"`
	SynchronizedProjects int `json:"synchronizedProjects"`
	SkippedProjects      int `json:"skippedProjects"`
}

type WorkflowTemplate

type WorkflowTemplate struct {
	ID           int    `json:"id"`
	Key          string `json:"key"`
	Name         string `json:"name"`
	Version      string `json:"version"`
	FrameworkKey string `json:"frameworkKey"`
	Deprecated   bool   `json:"deprecated"`
	Latest       bool   `json:"latest"`
}

Jump to

Keyboard shortcuts

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