Documentation ¶
Index ¶
Constants ¶
View Source
const ( ComponentSeparatorChar = grammar.RepositorySeparatorChar ComponentSeparator = grammar.RepositorySeparator VersionSeparatorChar = grammar.TagSeparatorChar VersionSeparator = grammar.TagSeparator )
Variables ¶
View Source
var ( // TypeRegexp describes a type name for a repository. TypeRegexp = grammar.TypeRegexp // AnchoredRepositoryRegexp parses a uniform repository spec. AnchoredRepositoryRegexp = Anchored( Optional(Capture(TypeRegexp), Literal("::")), Capture(grammar.DomainPortRegexp), Optional(grammar.RepositorySeparatorRegexp, Capture(grammar.RepositoryRegexp)), ) // AnchoredGenericRepositoryRegexp describes a CTF reference. AnchoredGenericRepositoryRegexp = Anchored( Optional(Capture(TypeRegexp), Literal("::")), Capture(Match(".*")), ) // ComponentRegexp describes the component name. It cosnsists // of a domain ame followed by OCI repository name components. ComponentRegexp = Sequence(grammar.DomainRegexp, grammar.RepositorySeparatorRegexp, grammar.RepositoryRegexp) // AnchoredComponentVersionRegexp parses a component with an optional version. AnchoredComponentVersionRegexp = Anchored( Capture(ComponentRegexp), Optional(Literal(VersionSeparator), Capture(grammar.TagRegexp)), ) // AnchoredReferenceRegexp parses a complete string representation for default component references including // the repository part. // It provides 5 captures: type, repository host port, sub path, component and version. AnchoredReferenceRegexp = Anchored( Optional(Capture(TypeRegexp), Literal("::")), Capture(grammar.DomainPortRegexp), Optional(grammar.RepositorySeparatorRegexp, Capture(grammar.RepositoryRegexp)), Literal("//"), Capture(ComponentRegexp), Optional(Literal(VersionSeparator), Capture(grammar.TagRegexp)), ) // AnchoredGenericReferenceRegexp parses a CTF file based string representation. AnchoredGenericReferenceRegexp = Anchored( Optional(Capture(TypeRegexp), Literal("::")), Capture(Match(".*?")), Optional(Literal("//"), Capture(ComponentRegexp), Optional(Literal(VersionSeparator), Capture(grammar.TagRegexp))), ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.