Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { URL string `json:"repo_url"` RootKeys []KeyConfig `json:"root_keys"` Mirrors []MirrorConfig `json:"mirrors"` RootVersion uint32 `json:"root_version"` RootThreshold uint32 `json:"root_threshold"` UpdatePackageURL string `json:"update_package_url,omitempty"` }
Config is a struct that mirrors an associated FIDL table definition in //sdk/fidl/fuchsia.pkg/repo.fidl. Documentation is as in that file. Ditto for the types that comprise its definition.
Keep these in sync with their repo.fidl counterparts as well as the custom
func (*Config) MarshalJSON ¶
func (*Config) UnmarshalJSON ¶
type KeyConfig ¶
type KeyConfig struct { // ED25519Key is a 32-byte, lowercase, hex-encoded key. ED25519Key string }
func GetRootKeys ¶
GetRootKeys returns the list of public key config objects as read from the contents of a repository's root metadata file.
func GetRootKeysInsecurely ¶
GetRootKeysInsecurely returns the list of public key config objects from a package repository. Note this is an insecure method, as it leaves the caller open to a man-in-the-middle attack.
func (*KeyConfig) MarshalJSON ¶
func (*KeyConfig) UnmarshalJSON ¶
type MirrorConfig ¶
Click to show internal directories.
Click to hide internal directories.