Documentation ¶
Index ¶
- Constants
- func GetPropsParams(reader *content.ContentReader, properties string) (propsParams services.PropsParams)
- type AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) CommandName() string
- func (atcc *AccessTokenCreateCommand) Response() ([]byte, error)
- func (atcc *AccessTokenCreateCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (atcc *AccessTokenCreateCommand) Run() error
- func (atcc *AccessTokenCreateCommand) SetAudience(audience string) *AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) SetExpiry(expiry int) *AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) SetGrantAdmin(grantAdmin bool) *AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) SetGroups(groups string) *AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) SetRefreshable(refreshable bool) *AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *AccessTokenCreateCommand
- func (atcc *AccessTokenCreateCommand) SetUserName(userName string) *AccessTokenCreateCommand
- type CopyCommand
- type DeleteCommand
- func (dc *DeleteCommand) CommandName() string
- func (dc *DeleteCommand) DeleteFiles(reader *content.ContentReader) (successCount, failedCount int, err error)
- func (dc *DeleteCommand) GetPathsToDelete() (*content.ContentReader, error)
- func (dc *DeleteCommand) Quiet() bool
- func (dc *DeleteCommand) Run() error
- func (dc *DeleteCommand) SetQuiet(quiet bool) *DeleteCommand
- func (dc *DeleteCommand) SetThreads(threads int) *DeleteCommand
- func (dc *DeleteCommand) Threads() int
- type DeletePropsCommand
- type DownloadCommand
- func (dc *DownloadCommand) CommandName() string
- func (dc *DownloadCommand) Configuration() *utils.DownloadConfiguration
- func (dc *DownloadCommand) Run() error
- func (dc *DownloadCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *DownloadCommand
- func (dc *DownloadCommand) SetConfiguration(configuration *utils.DownloadConfiguration) *DownloadCommand
- func (dc *DownloadCommand) SetProgress(progress ioUtils.ProgressMgr)
- func (dc *DownloadCommand) ShouldPrompt() bool
- type GenericCommand
- func (gc *GenericCommand) DetailedSummary() bool
- func (gc *GenericCommand) DryRun() bool
- func (gc *GenericCommand) Quiet() bool
- func (gc *GenericCommand) Result() *commandsutils.Result
- func (gc *GenericCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (gc *GenericCommand) SetDetailedSummary(detailedSummary bool) *GenericCommand
- func (gc *GenericCommand) SetDryRun(dryRun bool) *GenericCommand
- func (gc *GenericCommand) SetQuiet(quiet bool) *GenericCommand
- func (gc *GenericCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *GenericCommand
- func (gc *GenericCommand) SetSpec(spec *spec.SpecFiles) *GenericCommand
- func (gc *GenericCommand) SetSyncDeletesPath(syncDeletes string) *GenericCommand
- func (gc *GenericCommand) Spec() *spec.SpecFiles
- func (gc *GenericCommand) SyncDeletesPath() string
- type GitLfsCleanConfiguration
- type GitLfsCommand
- type MoveCommand
- type PingCommand
- func (pc *PingCommand) CommandName() string
- func (pc *PingCommand) Ping() ([]byte, error)
- func (pc *PingCommand) Response() []byte
- func (pc *PingCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (pc *PingCommand) Run() error
- func (pc *PingCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *PingCommand
- type PropsCommand
- type SearchCommand
- type SetPropsCommand
- type UploadCommand
- func (uc *UploadCommand) CommandName() string
- func (uc *UploadCommand) Run() error
- func (uc *UploadCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *UploadCommand
- func (uc *UploadCommand) SetProgress(progress ioUtils.ProgressMgr)
- func (uc *UploadCommand) SetUploadConfiguration(uploadConfiguration *utils.UploadConfiguration) *UploadCommand
- func (uc *UploadCommand) ShouldPrompt() bool
- func (uc *UploadCommand) UploadConfiguration() *utils.UploadConfiguration
Constants ¶
View Source
const ( GroupsPrefix = "member-of-groups:" UserScopedNotation = "*" AdminPrivilegesSuffix = ":admin" )
Variables ¶
This section is empty.
Functions ¶
func GetPropsParams ¶
func GetPropsParams(reader *content.ContentReader, properties string) (propsParams services.PropsParams)
Types ¶
type AccessTokenCreateCommand ¶
type AccessTokenCreateCommand struct {
// contains filtered or unexported fields
}
func NewAccessTokenCreateCommand ¶
func NewAccessTokenCreateCommand() *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) CommandName ¶
func (atcc *AccessTokenCreateCommand) CommandName() string
func (*AccessTokenCreateCommand) Response ¶
func (atcc *AccessTokenCreateCommand) Response() ([]byte, error)
func (*AccessTokenCreateCommand) RtDetails ¶
func (atcc *AccessTokenCreateCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*AccessTokenCreateCommand) Run ¶
func (atcc *AccessTokenCreateCommand) Run() error
func (*AccessTokenCreateCommand) SetAudience ¶
func (atcc *AccessTokenCreateCommand) SetAudience(audience string) *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) SetExpiry ¶
func (atcc *AccessTokenCreateCommand) SetExpiry(expiry int) *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) SetGrantAdmin ¶
func (atcc *AccessTokenCreateCommand) SetGrantAdmin(grantAdmin bool) *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) SetGroups ¶
func (atcc *AccessTokenCreateCommand) SetGroups(groups string) *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) SetRefreshable ¶
func (atcc *AccessTokenCreateCommand) SetRefreshable(refreshable bool) *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) SetRtDetails ¶
func (atcc *AccessTokenCreateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *AccessTokenCreateCommand
func (*AccessTokenCreateCommand) SetUserName ¶
func (atcc *AccessTokenCreateCommand) SetUserName(userName string) *AccessTokenCreateCommand
type CopyCommand ¶
type CopyCommand struct { GenericCommand // contains filtered or unexported fields }
func NewCopyCommand ¶
func NewCopyCommand() *CopyCommand
func (*CopyCommand) CommandName ¶
func (cc *CopyCommand) CommandName() string
func (*CopyCommand) Run ¶
func (cc *CopyCommand) Run() error
Copies the artifacts using the specified move pattern.
func (*CopyCommand) SetThreads ¶
func (cc *CopyCommand) SetThreads(threads int) *CopyCommand
func (*CopyCommand) Threads ¶
func (cc *CopyCommand) Threads() int
type DeleteCommand ¶
type DeleteCommand struct { GenericCommand // contains filtered or unexported fields }
func NewDeleteCommand ¶
func NewDeleteCommand() *DeleteCommand
func (*DeleteCommand) CommandName ¶
func (dc *DeleteCommand) CommandName() string
func (*DeleteCommand) DeleteFiles ¶
func (dc *DeleteCommand) DeleteFiles(reader *content.ContentReader) (successCount, failedCount int, err error)
func (*DeleteCommand) GetPathsToDelete ¶
func (dc *DeleteCommand) GetPathsToDelete() (*content.ContentReader, error)
func (*DeleteCommand) Quiet ¶
func (dc *DeleteCommand) Quiet() bool
func (*DeleteCommand) Run ¶
func (dc *DeleteCommand) Run() error
func (*DeleteCommand) SetQuiet ¶
func (dc *DeleteCommand) SetQuiet(quiet bool) *DeleteCommand
func (*DeleteCommand) SetThreads ¶
func (dc *DeleteCommand) SetThreads(threads int) *DeleteCommand
func (*DeleteCommand) Threads ¶
func (dc *DeleteCommand) Threads() int
type DeletePropsCommand ¶
type DeletePropsCommand struct {
PropsCommand
}
func NewDeletePropsCommand ¶
func NewDeletePropsCommand() *DeletePropsCommand
func (*DeletePropsCommand) CommandName ¶
func (deleteProps *DeletePropsCommand) CommandName() string
func (*DeletePropsCommand) DeletePropsCommand ¶
func (deleteProps *DeletePropsCommand) DeletePropsCommand(command PropsCommand) *DeletePropsCommand
func (*DeletePropsCommand) Run ¶
func (deleteProps *DeletePropsCommand) Run() error
type DownloadCommand ¶
type DownloadCommand struct { GenericCommand // contains filtered or unexported fields }
func NewDownloadCommand ¶
func NewDownloadCommand() *DownloadCommand
func (*DownloadCommand) CommandName ¶
func (dc *DownloadCommand) CommandName() string
func (*DownloadCommand) Configuration ¶
func (dc *DownloadCommand) Configuration() *utils.DownloadConfiguration
func (*DownloadCommand) Run ¶
func (dc *DownloadCommand) Run() error
func (*DownloadCommand) SetBuildConfiguration ¶
func (dc *DownloadCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *DownloadCommand
func (*DownloadCommand) SetConfiguration ¶
func (dc *DownloadCommand) SetConfiguration(configuration *utils.DownloadConfiguration) *DownloadCommand
func (*DownloadCommand) SetProgress ¶
func (dc *DownloadCommand) SetProgress(progress ioUtils.ProgressMgr)
func (*DownloadCommand) ShouldPrompt ¶
func (dc *DownloadCommand) ShouldPrompt() bool
type GenericCommand ¶
type GenericCommand struct {
// contains filtered or unexported fields
}
func NewGenericCommand ¶
func NewGenericCommand() *GenericCommand
func (*GenericCommand) DetailedSummary ¶
func (gc *GenericCommand) DetailedSummary() bool
func (*GenericCommand) DryRun ¶
func (gc *GenericCommand) DryRun() bool
func (*GenericCommand) Quiet ¶
func (gc *GenericCommand) Quiet() bool
func (*GenericCommand) Result ¶
func (gc *GenericCommand) Result() *commandsutils.Result
func (*GenericCommand) RtDetails ¶
func (gc *GenericCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*GenericCommand) SetDetailedSummary ¶
func (gc *GenericCommand) SetDetailedSummary(detailedSummary bool) *GenericCommand
func (*GenericCommand) SetDryRun ¶
func (gc *GenericCommand) SetDryRun(dryRun bool) *GenericCommand
func (*GenericCommand) SetQuiet ¶
func (gc *GenericCommand) SetQuiet(quiet bool) *GenericCommand
func (*GenericCommand) SetRtDetails ¶
func (gc *GenericCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *GenericCommand
func (*GenericCommand) SetSpec ¶
func (gc *GenericCommand) SetSpec(spec *spec.SpecFiles) *GenericCommand
func (*GenericCommand) SetSyncDeletesPath ¶
func (gc *GenericCommand) SetSyncDeletesPath(syncDeletes string) *GenericCommand
func (*GenericCommand) Spec ¶
func (gc *GenericCommand) Spec() *spec.SpecFiles
func (*GenericCommand) SyncDeletesPath ¶
func (gc *GenericCommand) SyncDeletesPath() string
type GitLfsCommand ¶
type GitLfsCommand struct { GenericCommand // contains filtered or unexported fields }
func NewGitLfsCommand ¶
func NewGitLfsCommand() *GitLfsCommand
func (*GitLfsCommand) CommandName ¶
func (glc *GitLfsCommand) CommandName() string
func (*GitLfsCommand) Configuration ¶
func (glc *GitLfsCommand) Configuration() *GitLfsCleanConfiguration
func (*GitLfsCommand) Run ¶
func (glc *GitLfsCommand) Run() error
func (*GitLfsCommand) SetConfiguration ¶
func (glc *GitLfsCommand) SetConfiguration(configuration *GitLfsCleanConfiguration) *GitLfsCommand
type MoveCommand ¶
type MoveCommand struct { GenericCommand // contains filtered or unexported fields }
func NewMoveCommand ¶
func NewMoveCommand() *MoveCommand
func (*MoveCommand) CommandName ¶
func (mc *MoveCommand) CommandName() string
func (*MoveCommand) Run ¶
func (mc *MoveCommand) Run() error
Moves the artifacts using the specified move pattern.
func (*MoveCommand) SetThreads ¶
func (mc *MoveCommand) SetThreads(threads int) *MoveCommand
func (*MoveCommand) Threads ¶
func (mc *MoveCommand) Threads() int
type PingCommand ¶
type PingCommand struct {
// contains filtered or unexported fields
}
func NewPingCommand ¶
func NewPingCommand() *PingCommand
func (*PingCommand) CommandName ¶
func (pc *PingCommand) CommandName() string
func (*PingCommand) Ping ¶
func (pc *PingCommand) Ping() ([]byte, error)
func (*PingCommand) Response ¶
func (pc *PingCommand) Response() []byte
func (*PingCommand) RtDetails ¶
func (pc *PingCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*PingCommand) Run ¶
func (pc *PingCommand) Run() error
func (*PingCommand) SetRtDetails ¶
func (pc *PingCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *PingCommand
type PropsCommand ¶
type PropsCommand struct { GenericCommand // contains filtered or unexported fields }
func NewPropsCommand ¶
func NewPropsCommand() *PropsCommand
func (*PropsCommand) Props ¶
func (pc *PropsCommand) Props() string
func (*PropsCommand) SetProps ¶
func (pc *PropsCommand) SetProps(props string) *PropsCommand
func (*PropsCommand) SetThreads ¶
func (pc *PropsCommand) SetThreads(threads int) *PropsCommand
func (*PropsCommand) Threads ¶
func (pc *PropsCommand) Threads() int
type SearchCommand ¶
type SearchCommand struct {
GenericCommand
}
func NewSearchCommand ¶
func NewSearchCommand() *SearchCommand
func (*SearchCommand) CommandName ¶
func (sc *SearchCommand) CommandName() string
func (*SearchCommand) Run ¶
func (sc *SearchCommand) Run() error
func (*SearchCommand) Search ¶
func (sc *SearchCommand) Search() (*content.ContentReader, error)
type SetPropsCommand ¶
type SetPropsCommand struct {
PropsCommand
}
func NewSetPropsCommand ¶
func NewSetPropsCommand() *SetPropsCommand
func (*SetPropsCommand) CommandName ¶
func (setProps *SetPropsCommand) CommandName() string
func (*SetPropsCommand) Run ¶
func (setProps *SetPropsCommand) Run() error
func (*SetPropsCommand) SetPropsCommand ¶
func (setProps *SetPropsCommand) SetPropsCommand(command PropsCommand) *SetPropsCommand
type UploadCommand ¶
type UploadCommand struct { GenericCommand // contains filtered or unexported fields }
func NewUploadCommand ¶
func NewUploadCommand() *UploadCommand
func (*UploadCommand) CommandName ¶
func (uc *UploadCommand) CommandName() string
func (*UploadCommand) Run ¶
func (uc *UploadCommand) Run() error
func (*UploadCommand) SetBuildConfiguration ¶
func (uc *UploadCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *UploadCommand
func (*UploadCommand) SetProgress ¶
func (uc *UploadCommand) SetProgress(progress ioUtils.ProgressMgr)
func (*UploadCommand) SetUploadConfiguration ¶
func (uc *UploadCommand) SetUploadConfiguration(uploadConfiguration *utils.UploadConfiguration) *UploadCommand
func (*UploadCommand) ShouldPrompt ¶
func (uc *UploadCommand) ShouldPrompt() bool
func (*UploadCommand) UploadConfiguration ¶
func (uc *UploadCommand) UploadConfiguration() *utils.UploadConfiguration
Click to show internal directories.
Click to hide internal directories.