Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultRuntimeRoot() string
- func LegacyPaths(string) []string
- type Catalog
- type CatalogArtifact
- type CatalogCompatibility
- type CatalogComponent
- type InstallOptions
- type ProgressEvent
- type Status
- type Store
- func (store *Store) ImportLegacy(ctx context.Context, source string) (Status, error)
- func (store *Store) Install(ctx context.Context, options InstallOptions) (Status, error)
- func (store *Store) Resolve() (string, error)
- func (store *Store) Status() Status
- func (store *Store) Uninstall() error
- func (store *Store) Update(ctx context.Context, options InstallOptions) (Status, error)
Constants ¶
View Source
const (
CloudflaredName = "cloudflared"
)
Variables ¶
View Source
var ( ErrNotInstalled = errors.New("cloudflared component is not installed") ErrBroken = errors.New("cloudflared component is broken") )
Functions ¶
func DefaultRuntimeRoot ¶
func DefaultRuntimeRoot() string
func LegacyPaths ¶
Types ¶
type Catalog ¶
type Catalog struct {
SchemaVersion int `json:"schema_version"`
Revision int `json:"revision"`
Components []CatalogComponent `json:"components"`
}
func ParseCatalog ¶
type CatalogArtifact ¶
type CatalogCompatibility ¶
type CatalogComponent ¶
type CatalogComponent struct {
Component string `json:"component"`
Version string `json:"version"`
Status string `json:"status"`
AgentDock CatalogCompatibility `json:"agentdock"`
UpstreamVersion string `json:"upstream_version"`
UpstreamSource string `json:"upstream_source"`
Artifacts []CatalogArtifact `json:"artifacts"`
}
func SelectCloudflaredEntry ¶
func SelectCloudflaredEntry(catalog Catalog, agentdockVersion string) (CatalogComponent, error)
type InstallOptions ¶
type ProgressEvent ¶
type Status ¶
type Status struct {
Component string `json:"component"`
State string `json:"state"`
Installed bool `json:"installed"`
Ready bool `json:"ready"`
Version string `json:"version,omitempty"`
Path string `json:"path,omitempty"`
SHA256 string `json:"sha256,omitempty"`
Detail string `json:"detail,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.