commands

package
v1.39.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearConfig

func ClearConfig(interactive bool)

func DeleteConfig

func DeleteConfig(serverName string) error

func Exec

func Exec(command Command) error

func Export

func Export(serverName string) error

func GetAllArtifactoryServerIds

func GetAllArtifactoryServerIds() []string

func GetConfig

func GetConfig(serverId string, excludeRefreshableTokens bool) (*config.ArtifactoryDetails, error)

func Import

func Import(serverToken string) error

func ShowConfig

func ShowConfig(serverName string) error

func Use

func Use(serverId string) error

Set the default configuration

Types

type Command

type Command interface {
	// Runs the command
	Run() error
	// Returns the Artifactory details. The usage report is sent to this Artifactory server.
	RtDetails() (*config.ArtifactoryDetails, error)
	// The command name for the usage report.
	CommandName() string
}

type ConfigCommand

type ConfigCommand struct {
	// contains filtered or unexported fields
}

func NewConfigCommand

func NewConfigCommand() *ConfigCommand

func (*ConfigCommand) CommandName

func (cc *ConfigCommand) CommandName() string

func (*ConfigCommand) Config

func (cc *ConfigCommand) Config() error

func (*ConfigCommand) RtDetails

func (cc *ConfigCommand) RtDetails() (*config.ArtifactoryDetails, error)

func (*ConfigCommand) Run

func (cc *ConfigCommand) Run() error

func (*ConfigCommand) SetDefaultDetails

func (cc *ConfigCommand) SetDefaultDetails(defaultDetails *config.ArtifactoryDetails) *ConfigCommand

func (*ConfigCommand) SetDetails

func (cc *ConfigCommand) SetDetails(details *config.ArtifactoryDetails) *ConfigCommand

func (*ConfigCommand) SetEncPassword

func (cc *ConfigCommand) SetEncPassword(encPassword bool) *ConfigCommand

func (*ConfigCommand) SetInteractive

func (cc *ConfigCommand) SetInteractive(interactive bool) *ConfigCommand

func (*ConfigCommand) SetServerId

func (cc *ConfigCommand) SetServerId(serverId string) *ConfigCommand

func (*ConfigCommand) SetUseBasicAuthOnly

func (cc *ConfigCommand) SetUseBasicAuthOnly(useBasicAuthOnly bool) *ConfigCommand

type ConfigCommandConfiguration

type ConfigCommandConfiguration struct {
	ArtDetails    *config.ArtifactoryDetails
	Interactive   bool
	EncPassword   bool
	BasicAuthOnly bool
}

Jump to

Keyboard shortcuts

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