internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 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

Index

Constants

View Source
const (
	IfcFolder       = ".ifc"
	IfcConfigFile   = "ifc.yaml"
	IfcManifestFile = "manifest.json"

	DefaultAPIHost     = "ifc7.dev"
	DeviceFlowClientId = "4ul2l9rbkt7p9g13ho2cnf0pgf"
	DeviceFlowURL      = "https://device-auth.ifc7.dev"
	CognitoDomain      = "https://ifc7-device-auth.auth.us-east-1.amazoncognito.com"
)
View Source
const (
	// EnvToken holds an ifc7 access token (for example an agent token from CI).
	// When set, it replaces the stored login for every hub request.
	EnvToken = "IFC_TOKEN"
	// EnvHubURL overrides the base URL of the hub that requests are sent to.
	// It selects a server only; refs in ifc.yaml keep their canonical host.
	EnvHubURL = "IFC_HUB_URL"
	// DefaultHubURL is the hub base URL used when EnvHubURL is unset.
	DefaultHubURL = "https://" + DefaultAPIHost
)

Variables

View Source
var (
	BuildVersion = "dev"
	GitCommit    = "none"
	BuildTime    = "unknown"
)
View Source
var (
	IfcManifestPath = path.Join(IfcFolder, IfcManifestFile)
)

Functions

func APIURL added in v0.0.2

func APIURL() (string, error)

APIURL returns the hub's REST API base URL, <hub URL>/api/v0/.

func HubURL added in v0.0.2

func HubURL() (*url.URL, error)

HubURL returns the hub base URL from $IFC_HUB_URL, or DefaultHubURL. The result has no trailing slash.

func HubURLFromAPIURL added in v0.0.2

func HubURLFromAPIURL(apiURL string) (*url.URL, error)

HubURLFromAPIURL recovers the hub base URL from an API base URL built by APIURL.

Types

This section is empty.

Directories

Path Synopsis
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.
pkg
auth
Package auth provides primitives to interact with the openapi HTTP API.
Package auth provides primitives to interact with the openapi HTTP API.
fileio
Package fileio provides convenient functions for reading and writing files and directories to a filesystem They may not be the most efficient implementations but the focus is on ease of use
Package fileio provides convenient functions for reading and writing files and directories to a filesystem They may not be the most efficient implementations but the focus is on ease of use
testutils
Package testutils provides utilities for testing SEVEN projects
Package testutils provides utilities for testing SEVEN projects
Package project holds the state of an ifc7 managed project and defines command line operations that can be performed on it.
Package project holds the state of an ifc7 managed project and defines command line operations that can be performed on it.
Package ui provides shared terminal styling aligned with the ifc-web brand.
Package ui provides shared terminal styling aligned with the ifc-web brand.

Jump to

Keyboard shortcuts

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