permissiontarget

package
v2.56.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (*PermissionTargetCreateCommand) SetVars

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 (*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

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 (*PermissionTargetUpdateCommand) SetVars

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL