Documentation ¶
Index ¶
- Constants
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- type AccessSpec
- func (a *AccessSpec) AccessMethod(cv accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
- func (a *AccessSpec) ArtifactUrl() string
- func (a *AccessSpec) BaseUrl() string
- func (a *AccessSpec) Describe(_ accspeccpi.Context) string
- func (a *AccessSpec) GetCoordinates() *maven.Coordinates
- func (a *AccessSpec) GetReferenceHint(_ accspeccpi.ComponentVersionAccess) string
- func (_ *AccessSpec) GetType() string
- func (a *AccessSpec) GlobalAccessSpec(_ accspeccpi.Context) accspeccpi.AccessSpec
- func (_ *AccessSpec) IsLocal(accspeccpi.Context) bool
- type Option
- type WithClassifier
- type WithExtension
Constants ¶
View Source
const ( Type = "maven" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type is the access type of Maven repository.
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // RepoUrl is the base URL of the Maven repository. RepoUrl string `json:"repoUrl"` maven.Coordinates `json:",inline"` }
AccessSpec describes the access for a Maven artifact.
func New ¶
func New(repository, groupId, artifactId, version string, opts ...Option) *AccessSpec
New creates a new Maven repository access spec version v1.
func NewForCoordinates ¶
func NewForCoordinates(repository string, coords *maven.Coordinates, opts ...Option) *AccessSpec
NewForCoordinates creates a new Maven repository access spec version v1.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(cv accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
func (*AccessSpec) ArtifactUrl ¶
func (a *AccessSpec) ArtifactUrl() string
func (*AccessSpec) BaseUrl ¶
func (a *AccessSpec) BaseUrl() string
func (*AccessSpec) Describe ¶
func (a *AccessSpec) Describe(_ accspeccpi.Context) string
func (*AccessSpec) GetCoordinates ¶
func (a *AccessSpec) GetCoordinates() *maven.Coordinates
func (*AccessSpec) GetReferenceHint ¶
func (a *AccessSpec) GetReferenceHint(_ accspeccpi.ComponentVersionAccess) string
GetReferenceHint returns the reference hint for the Maven (mvn) artifact.
func (*AccessSpec) GetType ¶
func (_ *AccessSpec) GetType() string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(_ accspeccpi.Context) accspeccpi.AccessSpec
func (*AccessSpec) IsLocal ¶
func (_ *AccessSpec) IsLocal(accspeccpi.Context) bool
type Option ¶
type Option = maven.CoordinateOption
Option defines the interface function "ApplyTo()".
func WithOptionalClassifier ¶
func WithOptionalExtension ¶
type WithClassifier ¶
type WithClassifier = maven.WithClassifier
type WithExtension ¶
type WithExtension = maven.WithExtension
Click to show internal directories.
Click to hide internal directories.