Documentation
¶
Index ¶
- Constants
- Variables
- type AccessMethodDescriptor
- type AccessSpecInfo
- type ArtifactContext
- func (k ArtifactContext) Describe() string
- func (k ArtifactContext) GetArtifactType() string
- func (k ArtifactContext) GetMediaType() string
- func (k ArtifactContext) IsValid() bool
- func (k ArtifactContext) SetArtifact(arttype, mediatype string) ArtifactContext
- func (k ArtifactContext) String() string
- type CLIOption
- type Descriptor
- type DownloaderDescriptor
- type DownloaderKey
- type Element
- type List
- type Named
- type RepositoryContext
- type StringName
- type UploadTargetSpecInfo
- type UploaderDescriptor
- type UploaderKey
- type UploaderKeySet
Constants ¶
View Source
const ( KIND_PLUGIN = "plugin" KIND_DOWNLOADER = "downloader" KIND_UPLOADER = "uploader" KIND_ACCESSMETHOD = errors.KIND_ACCESSMETHOD )
View Source
const VERSION = "v1"
Variables ¶
View Source
var TAG = logging.NewTag("plugins")
Functions ¶
This section is empty.
Types ¶
type AccessMethodDescriptor ¶
type AccessSpecInfo ¶
type AccessSpecInfo struct {
Short string
MediaType string
Hint string
ConsumerId credentials.ConsumerIdentity
}
type ArtifactContext ¶
type ArtifactContext struct {
ArtifactType string `json:"artifactType"`
MediaType string `json:"mediaType"`
}
func (ArtifactContext) Describe ¶
func (k ArtifactContext) Describe() string
func (ArtifactContext) GetArtifactType ¶
func (k ArtifactContext) GetArtifactType() string
func (ArtifactContext) GetMediaType ¶
func (k ArtifactContext) GetMediaType() string
func (ArtifactContext) IsValid ¶
func (k ArtifactContext) IsValid() bool
func (ArtifactContext) SetArtifact ¶
func (k ArtifactContext) SetArtifact(arttype, mediatype string) ArtifactContext
func (ArtifactContext) String ¶
func (k ArtifactContext) String() string
type Descriptor ¶
type Descriptor struct {
Version string `json:"version,omitempty"`
PluginName string `json:"pluginName"`
PluginVersion string `json:"pluginVersion"`
Short string `json:"shortDescription"`
Long string `json:"description"`
AccessMethods []AccessMethodDescriptor `json:"accessMethods,omitempty"`
Uploaders List[UploaderDescriptor] `json:"uploaders,omitempty"`
Downloaders List[DownloaderDescriptor] `json:"downloaders,omitempty"`
}
type DownloaderDescriptor ¶
type DownloaderDescriptor struct {
Name string `json:"name"`
Description string `json:"description"`
Constraints []DownloaderKey `json:"constraints,omitempty"`
}
func (DownloaderDescriptor) GetConstraints ¶
func (d DownloaderDescriptor) GetConstraints() []DownloaderKey
func (DownloaderDescriptor) GetDescription ¶
func (d DownloaderDescriptor) GetDescription() string
func (DownloaderDescriptor) GetName ¶
func (d DownloaderDescriptor) GetName() string
type DownloaderKey ¶
type DownloaderKey = ArtifactContext
func NewDownloaderKey ¶
func NewDownloaderKey(arttype, mediatype string) DownloaderKey
type RepositoryContext ¶
type RepositoryContext struct {
ContextType string `json:"contextType"`
RepositoryType string `json:"repositoryType"`
}
func (RepositoryContext) Describe ¶
func (k RepositoryContext) Describe() string
func (RepositoryContext) HasRepo ¶
func (k RepositoryContext) HasRepo() bool
func (RepositoryContext) IsValid ¶
func (k RepositoryContext) IsValid() bool
func (RepositoryContext) String ¶
func (k RepositoryContext) String() string
type StringName ¶
type StringName string
func (StringName) GetName ¶
func (e StringName) GetName() string
type UploadTargetSpecInfo ¶
type UploadTargetSpecInfo struct {
ConsumerId credentials.ConsumerIdentity
}
type UploaderDescriptor ¶
type UploaderDescriptor struct {
Name string `json:"name"`
Description string `json:"description"`
Constraints []UploaderKey `json:"constraints,omitempty"`
}
func (UploaderDescriptor) GetConstraints ¶
func (d UploaderDescriptor) GetConstraints() []UploaderKey
func (UploaderDescriptor) GetDescription ¶
func (d UploaderDescriptor) GetDescription() string
func (UploaderDescriptor) GetName ¶
func (d UploaderDescriptor) GetName() string
type UploaderKey ¶
type UploaderKey struct {
RepositoryContext `json:",inline"`
ArtifactContext `json:",inline"`
}
func (UploaderKey) Describe ¶
func (k UploaderKey) Describe() string
func (UploaderKey) IsValid ¶
func (k UploaderKey) IsValid() bool
func (UploaderKey) SetArtifact ¶
func (k UploaderKey) SetArtifact(arttype, mediatype string) UploaderKey
func (UploaderKey) SetRepo ¶
func (k UploaderKey) SetRepo(contexttype, repotype string) UploaderKey
func (UploaderKey) String ¶
func (k UploaderKey) String() string
type UploaderKeySet ¶
type UploaderKeySet = generics.Set[UploaderKey]
Click to show internal directories.
Click to hide internal directories.