Documentation ¶
Overview ¶
Package types provides basic types to work with Conan items: references and packages.
Package types provides some abstraction over some data returned by JFrog Artifactory.
Index ¶
Constants ¶
const ( ValidConanChars = `[a-zA-Z0-9_][a-zA-Z0-9_\+\.-]` // Validates (regex) a part from a Conan reference FilesystemPlaceHolder = "_" // Filesystem representation of a null user or null channel in a Conan reference. )
Constants to be used with Conan elements.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
Package represents a Conan package with its `Reference`, the package ID and the package revision.
type Reference ¶
Reference represents a Conan reference with its parts: name, version, user, channel and revision. Only the attributes `Channel` and `User` are optional in a valid reference.
func ParseStringReference ¶
ParseStringReference parses a string and returns a Conan reference. The string can have any of these formats: name/version, name/version@user/channel, name/version#revision, name/version@user/channel#revision.
func (*Reference) RtPath ¶
RtPath returns the path inside Artifactory to the `Reference`. It can be considered with or without revisions (latest element in the Artifactory path).
type RtIndexJSON ¶
type RtIndexJSON struct { //Reference string Revisions []RtRevisionsData }
RtIndexJSON represents the JSON where Artifactory stores Conan revisions (using 'index.json' files).
type RtRevisionsData ¶
type RtRevisionsData struct { Revision string Time RtTimestamp }
RtRevisionsData represents the data associated to a Conan revision in Artifactory.
type RtTimestamp ¶
RtTimestamp represents a custom timestamp using format '2006-01-02T15:04:05.999+0000'. It allows serializing and deserializing using the representation used by Artifactory.
func (*RtTimestamp) UnmarshalJSON ¶
func (ct *RtTimestamp) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON overrides parsing from JSON a timestamp using the RtTimestamp type.