Documentation ¶
Index ¶
- Constants
- type PermissionSectionAnswer
- type PermissionTargetCommand
- type PermissionTargetCreateCommand
- func (ptcc *PermissionTargetCreateCommand) CommandName() string
- func (ptcc *PermissionTargetCreateCommand) Run() (err error)
- func (ptcc *PermissionTargetCreateCommand) ServerDetails() (*config.ServerDetails, error)
- func (ptcc *PermissionTargetCreateCommand) SetServerDetails(serverDetails *config.ServerDetails) *PermissionTargetCreateCommand
- func (ptcc *PermissionTargetCreateCommand) SetTemplatePath(path string) *PermissionTargetCreateCommand
- func (ptcc *PermissionTargetCreateCommand) SetVars(vars string) *PermissionTargetCreateCommand
- type PermissionTargetDeleteCommand
- func (ptdc *PermissionTargetDeleteCommand) CommandName() string
- func (ptdc *PermissionTargetDeleteCommand) Run() (err error)
- func (ptdc *PermissionTargetDeleteCommand) ServerDetails() (*config.ServerDetails, error)
- func (ptdc *PermissionTargetDeleteCommand) SetPermissionTargetName(permissionTargetName string) *PermissionTargetDeleteCommand
- func (ptdc *PermissionTargetDeleteCommand) SetQuiet(quiet bool) *PermissionTargetDeleteCommand
- func (ptdc *PermissionTargetDeleteCommand) SetServerDetails(serverDetails *config.ServerDetails) *PermissionTargetDeleteCommand
- type PermissionTargetTemplateCommand
- func (pttc *PermissionTargetTemplateCommand) CommandName() string
- func (pttc *PermissionTargetTemplateCommand) Run() (err error)
- func (pttc *PermissionTargetTemplateCommand) ServerDetails() (*config.ServerDetails, error)
- func (pttc *PermissionTargetTemplateCommand) SetTemplatePath(path string) *PermissionTargetTemplateCommand
- type PermissionTargetUpdateCommand
- func (ptuc *PermissionTargetUpdateCommand) CommandName() string
- func (ptuc *PermissionTargetUpdateCommand) Run() (err error)
- func (ptuc *PermissionTargetUpdateCommand) ServerDetails() (*config.ServerDetails, error)
- func (ptuc *PermissionTargetUpdateCommand) SetServerDetails(serverDetails *config.ServerDetails) *PermissionTargetUpdateCommand
- func (ptuc *PermissionTargetUpdateCommand) SetTemplatePath(path string) *PermissionTargetUpdateCommand
- func (ptuc *PermissionTargetUpdateCommand) SetVars(vars string) *PermissionTargetUpdateCommand
Constants ¶
View Source
const ( // Strings for prompt questions SelectPermissionTargetSectionMsg = "Select the permission target section to configure" + ioutils.PressTabMsg LeaveEmptyForDefault = "(press enter for default)" // Yes,No answers Yes = "yes" No = "no" // Main permission target configuration JSON keys Name = "name" Repo = "repo" Build = "build" ReleaseBundle = "releaseBundle" IncludePatternsDefault = "**" ExcludePatternsDefault = "" )
View Source
const DefaultBuildRepositoriesValue = "artifactory-build-info"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionSectionAnswer ¶
type PermissionSectionAnswer struct { Repositories string `json:"repositories,omitempty"` IncludePatterns string `json:"include-patterns,omitempty"` ExcludePatterns string `json:"exclude-patterns,omitempty"` ActionsUsers map[string]string `json:"actions-users,omitempty"` ActionsGroups map[string]string `json:"actions-groups,omitempty"` }
type PermissionTargetCommand ¶
type PermissionTargetCommand struct {
// contains filtered or unexported fields
}
func (*PermissionTargetCommand) PerformPermissionTargetCmd ¶
func (ptc *PermissionTargetCommand) PerformPermissionTargetCmd(isUpdate bool) (err error)
func (*PermissionTargetCommand) TemplatePath ¶
func (ptc *PermissionTargetCommand) TemplatePath() string
func (*PermissionTargetCommand) Vars ¶
func (ptc *PermissionTargetCommand) Vars() string
type PermissionTargetCreateCommand ¶
type PermissionTargetCreateCommand struct {
PermissionTargetCommand
}
func NewPermissionTargetCreateCommand ¶
func NewPermissionTargetCreateCommand() *PermissionTargetCreateCommand
func (*PermissionTargetCreateCommand) CommandName ¶
func (ptcc *PermissionTargetCreateCommand) CommandName() string
func (*PermissionTargetCreateCommand) Run ¶
func (ptcc *PermissionTargetCreateCommand) Run() (err error)
func (*PermissionTargetCreateCommand) ServerDetails ¶
func (ptcc *PermissionTargetCreateCommand) ServerDetails() (*config.ServerDetails, error)
func (*PermissionTargetCreateCommand) SetServerDetails ¶
func (ptcc *PermissionTargetCreateCommand) SetServerDetails(serverDetails *config.ServerDetails) *PermissionTargetCreateCommand
func (*PermissionTargetCreateCommand) SetTemplatePath ¶
func (ptcc *PermissionTargetCreateCommand) SetTemplatePath(path string) *PermissionTargetCreateCommand
func (*PermissionTargetCreateCommand) SetVars ¶
func (ptcc *PermissionTargetCreateCommand) SetVars(vars string) *PermissionTargetCreateCommand
type PermissionTargetDeleteCommand ¶
type PermissionTargetDeleteCommand struct {
// contains filtered or unexported fields
}
func NewPermissionTargetDeleteCommand ¶
func NewPermissionTargetDeleteCommand() *PermissionTargetDeleteCommand
func (*PermissionTargetDeleteCommand) CommandName ¶
func (ptdc *PermissionTargetDeleteCommand) CommandName() string
func (*PermissionTargetDeleteCommand) Run ¶
func (ptdc *PermissionTargetDeleteCommand) Run() (err error)
func (*PermissionTargetDeleteCommand) ServerDetails ¶
func (ptdc *PermissionTargetDeleteCommand) ServerDetails() (*config.ServerDetails, error)
func (*PermissionTargetDeleteCommand) SetPermissionTargetName ¶
func (ptdc *PermissionTargetDeleteCommand) SetPermissionTargetName(permissionTargetName string) *PermissionTargetDeleteCommand
func (*PermissionTargetDeleteCommand) SetQuiet ¶
func (ptdc *PermissionTargetDeleteCommand) SetQuiet(quiet bool) *PermissionTargetDeleteCommand
func (*PermissionTargetDeleteCommand) SetServerDetails ¶
func (ptdc *PermissionTargetDeleteCommand) SetServerDetails(serverDetails *config.ServerDetails) *PermissionTargetDeleteCommand
type PermissionTargetTemplateCommand ¶
type PermissionTargetTemplateCommand struct {
// contains filtered or unexported fields
}
func NewPermissionTargetTemplateCommand ¶
func NewPermissionTargetTemplateCommand() *PermissionTargetTemplateCommand
func (*PermissionTargetTemplateCommand) CommandName ¶
func (pttc *PermissionTargetTemplateCommand) CommandName() string
func (*PermissionTargetTemplateCommand) Run ¶
func (pttc *PermissionTargetTemplateCommand) Run() (err error)
func (*PermissionTargetTemplateCommand) ServerDetails ¶
func (pttc *PermissionTargetTemplateCommand) ServerDetails() (*config.ServerDetails, error)
func (*PermissionTargetTemplateCommand) SetTemplatePath ¶
func (pttc *PermissionTargetTemplateCommand) SetTemplatePath(path string) *PermissionTargetTemplateCommand
type PermissionTargetUpdateCommand ¶
type PermissionTargetUpdateCommand struct {
PermissionTargetCommand
}
func NewPermissionTargetUpdateCommand ¶
func NewPermissionTargetUpdateCommand() *PermissionTargetUpdateCommand
func (*PermissionTargetUpdateCommand) CommandName ¶
func (ptuc *PermissionTargetUpdateCommand) CommandName() string
func (*PermissionTargetUpdateCommand) Run ¶
func (ptuc *PermissionTargetUpdateCommand) Run() (err error)
func (*PermissionTargetUpdateCommand) ServerDetails ¶
func (ptuc *PermissionTargetUpdateCommand) ServerDetails() (*config.ServerDetails, error)
func (*PermissionTargetUpdateCommand) SetServerDetails ¶
func (ptuc *PermissionTargetUpdateCommand) SetServerDetails(serverDetails *config.ServerDetails) *PermissionTargetUpdateCommand
func (*PermissionTargetUpdateCommand) SetTemplatePath ¶
func (ptuc *PermissionTargetUpdateCommand) SetTemplatePath(path string) *PermissionTargetUpdateCommand
func (*PermissionTargetUpdateCommand) SetVars ¶
func (ptuc *PermissionTargetUpdateCommand) SetVars(vars string) *PermissionTargetUpdateCommand
Click to show internal directories.
Click to hide internal directories.