Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultClient ¶
func NewDefaultClient(manifestPath string) manifest.ReleaseManifestProvider
NewDefaultClient is a convenience constructor that returns a ReleaseManifestProvider.
Types ¶
type HTTP ¶
A HTTP client makes HTTP requests to retrieve and parse a Manifest. The default manifests are stored on S3, but the manifestURLFmt can be overridden for testing.
func NewHTTPClient ¶
NewHTTPClient returns a client with the given options applied.
func (*HTTP) GetCurrentManifest ¶
GetCurrentManifest retrieves the current manifest for the given channel.
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
InMemory manifest client reads the manifest from bytes in memory
func NewInMemoryClient ¶
NewInMemoryClient returns a InMemory manifest client
func (*InMemory) GetCurrentManifest ¶
GetCurrentManifest parses the manifest in memory
type Opt ¶
type Opt func(c *HTTP)
An Opt represent an option that can be passed to NewClient
func LatestSemanticURLFormat ¶
func LatestURLFormat ¶
CurrentURLFormat returns an Opt that can be passed to NewClient which sets the latestManifestURLFmt to the given string. Used in testing.
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
A Path client retrieves and parses a Manifest from files in a directory or a file
func (*Path) GetCurrentManifest ¶
GetCurrentManifest returns an A2 manifest.