Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { // Name contains a friendly name for the bundle Name string `json:"name"` // Bundle contains the PEM-formatted certificates which are provided by this bundle. Bundle string `json:"bundle"` // Version identifies the bundle's version, to distinguish updated bundles from older counterparts Version string `json:"version"` }
Package specifies the structure of JSON packages which can be read from the filesystem of the trust-manager container and subsequently used in a Bundle resource. Note that this struct must be both forwards and backwards compatible. Any JSON which marshals / unmarshals from this struct should be readable by every version of trust-manager which supports loading default CA packages.
func LoadPackage ¶
LoadPackage tries to read a package from the given reader, checking that it only contains valid certificates
func LoadPackageFromFile ¶
LoadPackageFromFile uses LoadPackage to read a JSON file specifying a package
Click to show internal directories.
Click to hide internal directories.