instance

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

package: instance / cmd type: logic job: the running instance every verb addresses — its URL and the one credential it carries limits: wiring only; the requests are the official client's (-> client)

Its own package because the verb packages need it: a subcommand lives in the file its name gives it, so `branch create` is branch/create.go, and those cannot reach into main.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	URL      string
	Token    string
	APIKey   string
	Macaroon string
}

Instance is the server a verb addresses, as the root flags name it.

func (*Instance) Connect

func (i *Instance) Connect() (*client.Client, error)

Connect builds a client carrying the credential on every request. All three schemes are accepted so one binary reaches an instance behind any authenticator; naming more than one is refused rather than picking one, since the endpoint routes on the scheme presented and two of them name two adapters.

Jump to

Keyboard shortcuts

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