Documentation ¶
Index ¶
- Constants
- Variables
- func Platform() (string, string, string)
- func SystemConstraints() map[string]string
- type Config
- func (c *Config) BuildPath() string
- func (c *Config) ConfigDir() string
- func (c *Config) Constraints() map[string]string
- func (c *Config) GlobalPackagesPath() string
- func (c *Config) GlobalProfilePath() string
- func (c *Config) MapPaths(ctx context.Context, pp []*PackagePath) ([]string, error)
- func (c *Config) NamedPath() []PathPart
- func (c *Config) PackagePath() ([]*PackagePath, error)
- func (c *Config) Private() ed25519.PrivateKey
- func (c *Config) Public() ed25519.PublicKey
- func (c *Config) Repo() repo.Repo
- func (c *Config) RootsPath() string
- func (c *Config) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
- func (c *Config) SignerId() (string, error)
- func (c *Config) StatePath() string
- func (c *Config) Store() *Store
- func (c *Config) StorePath() string
- type ConfigRepo
- type EDSigner
- type PackagePath
- type PathMap
- type PathPart
- type Store
Constants ¶
View Source
const ( DefaultConfigPath = "~/.config/iris/config.json" DefaultProfilesPath = "~/.config/iris/profiles" DefaultProfile = "main" DefaultDataDir = "/opt/iris" DefaultPath = "github.com/lab47/aperture-packages" )
Variables ¶
View Source
var ErrNoEntry = errors.New("no store entry for id")
Functions ¶
func SystemConstraints ¶
Types ¶
type Config ¶
type Config struct { // Actual Config DataDir string `json:"data-dir"` Path string `json:"aperture-path"` ProfilesPath string `json:"profiles-path"` Profile string `json:"profile"` // contains filtered or unexported fields }
func LoadConfig ¶
func (*Config) Constraints ¶
func (*Config) GlobalPackagesPath ¶
func (*Config) GlobalProfilePath ¶
func (*Config) PackagePath ¶
func (c *Config) PackagePath() ([]*PackagePath, error)
func (*Config) Private ¶
func (c *Config) Private() ed25519.PrivateKey
type ConfigRepo ¶
type ConfigRepo struct {
// contains filtered or unexported fields
}
func (*ConfigRepo) Config ¶
func (c *ConfigRepo) Config() (*metadata.RepoConfig, error)
type PackagePath ¶
type PackagePath struct { Name string Type string Location string Version string // Populated by PathMap to indicate the version that was actually used for Version ResolvedVersion string }
func CalcPath ¶
func CalcPath(name, ref string) (*PackagePath, error)
Click to show internal directories.
Click to hide internal directories.