- func Full(s string) (string, error)
- func Resolve(channel, newChannel string) (string, error)
- func ResolvePinned(track, newChannel string) (string, error)
- type Channel
- type ChannelMatch
This section is empty.
Resolve resolves newChannel wrt channel, this means if newChannel is risk/branch only it will preserve the track of channel. It assumes that if both are not empty, channel is parseable.
Channel identifies and describes completely a store channel.
Parse parses a string representing a store channel and includes given architecture, , if architecture is "" the system architecture is included. The returned channel's track, risk and name are normalized.
func ParseVerbatim ¶
ParseVerbatim parses a string representing a store channel and includes the given architecture, if architecture is "" the system architecture is included. The channel representation is not normalized. Parse() should be used in most cases.
Clean returns a Channel with a normalized track, risk and name.
Full returns the full name of the channel, inclusive the default track "latest".
Match returns a ChannelMatch of which fields among architecture,track,risk match between c and c1 store channels, risk is matched taking channel inheritance into account and considering c the requested channel.
func (*Channel) VerbatimRiskOnly ¶
VerbatimRiskOnly returns whether the channel represents a risk only.
type ChannelMatch ¶
ChannelMatch represents on which fields two channels are matching.