Versions in this module Expand all Collapse all v0 v0.13.0 Nov 20, 2026 Changes in this version type Client + func (c *Client) Release(ctx context.Context, id string) (Publish, error) + func (c *Client) RunningPreview(ctx context.Context, app string) (Preview, bool, error) type Release + Replaced string + ReplacedState string type Upload + Release bool v0.12.0 Nov 19, 2026 Changes in this version type Release + URL string v0.11.0 Nov 18, 2026 Changes in this version + const DefaultAddress + const MaxBundle + const MaxRows + var Envs = []string + var ErrBaseChanged = errs.New("E-PUB-010", ...) + var ErrCancelled = errors.New("sign-in cancelled") + var ErrNoOrg = errors.New("no organisation to sign in to") + var PublishID = regexp.MustCompile(`^pub_[a-z2-7]{26}$`) + var TraceID = regexp.MustCompile(`^[0-9a-f]{32}$`) + func Address() (string, error) + func Delete(address string) error + func Fix(code string) string + func Save(address string, cr Credentials) error + func ValidOrg(s string) bool + func When(name, s string, now time.Time) (time.Time, error) + type App struct + Archived bool + Base string + Last *Last + Name string + type Client struct + HTTP *http.Client + Timeout time.Duration + func New(address string, out io.Writer) *Client + func (c *Client) App(ctx context.Context, name string) (app App, found bool, err error) + func (c *Client) CreatePublish(ctx context.Context, u Upload) (Created, error) + func (c *Client) Login(ctx context.Context, org string, device bool) (Whoami, error) + func (c *Client) Logout(ctx context.Context) (signedIn, revoked bool, err error) + func (c *Client) Logs(ctx context.Context, q TelemetryQuery) ([]LogLine, error) + func (c *Client) Migrations(ctx context.Context, name string) ([]migrate.Step, error) + func (c *Client) PreviewEnd(ctx context.Context, app string) error + func (c *Client) PreviewStart(ctx context.Context, id string) (Preview, error) + func (c *Client) Publish(ctx context.Context, id string) (Publish, error) + func (c *Client) Refresh(ctx context.Context, stale string) (string, error) + func (c *Client) Spans(ctx context.Context, q TelemetryQuery) ([]Span, error) + func (c *Client) Token(ctx context.Context) (string, error) + func (c *Client) Trace(ctx context.Context, q TelemetryQuery) ([]Span, error) + func (c *Client) Whoami(ctx context.Context) (Whoami, error) + type Created struct + CreatedApp bool + ID string + type Credentials struct + AccessToken string + Expires time.Time + Org string + RefreshToken string + func Load(address string) (Credentials, error) + type Declined struct + At time.Time + By string + Reason string + type Last struct + ID string + SHA string + Status string + type LogLine struct + Attributes map[string]string + Body string + Env string + Level string + Release string + SpanID string + Time time.Time + TraceID string + type Parent struct + ID string + SHA string + type Preview struct + App string + Expires time.Time + Host string + Publish string + Reset bool + Started time.Time + URL string + type Publish struct + App string + Checks string + Created time.Time + Declined *Declined + Ended time.Time + HistoryRewritten bool + ID string + Notes []problem.Problem + Parent *Parent + Problems []problem.Problem + Reason string + Record int64 + Release *Release + SHA string + Status string + Steps []Step + Summary string + func (p Publish) Done() bool + type Release struct + AppType string + Live bool + Reason string + Reasons []problem.Problem + State string + Tier string + type Span struct + Attributes map[string]string + DurationNS int64 + Env string + Kind string + Name string + ParentSpanID string + Release string + SpanID string + Status string + StatusMessage string + Time time.Time + TraceID string + type Step struct + Name string + Outcome string + type TelemetryQuery struct + App string + Env string + Level string + Limit int + Since time.Time + Trace string + Until time.Time + type Upload struct + App string + Bundle []byte + Migration string + SHA string + Summary string + type Whoami struct + Email string + Org string + Scopes []string