Documentation ¶
Index ¶
- type CommonArgs
- type InstallCiArgs
- func (ica *InstallCiArgs) GetDependenciesList() map[string]*npmutils.Dependency
- func (ica *InstallCiArgs) ServerDetails() (*config.ServerDetails, error)
- func (ica *InstallCiArgs) SetPackageInfo(packageInfo *npmutils.PackageInfo) *InstallCiArgs
- func (ica *InstallCiArgs) SetThreads(threads int) *InstallCiArgs
- func (ica *InstallCiArgs) SetTypeRestriction(typeRestriction npmutils.TypeRestriction) *InstallCiArgs
- type NativeCommand
- func (nnc *NativeCommand) CommandName() string
- func (nnc *NativeCommand) Init() error
- func (nnc *NativeCommand) Run() error
- func (nnc *NativeCommand) SetConfigFilePath(configFilePath string) *NativeCommand
- func (nnc *NativeCommand) SetServerDetails(serverDetails *config.ServerDetails) *NativeCommand
- type NativeCommandArgs
- type NpmCommand
- func (nc *NpmCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *NpmCommand
- func (nc *NpmCommand) SetNpmArgs(npmArgs []string) *NpmCommand
- func (nc *NpmCommand) SetRepo(repo string) *NpmCommand
- func (nc *NpmCommand) SetServerDetails(serverDetails *config.ServerDetails) *NpmCommand
- type NpmInstallOrCiCommand
- func (nic *NpmInstallOrCiCommand) CommandName() string
- func (nic *NpmInstallOrCiCommand) Init() error
- func (nic *NpmInstallOrCiCommand) Run() error
- func (nic *NpmInstallOrCiCommand) SetArgs(args []string) *NpmInstallOrCiCommand
- func (nic *NpmInstallOrCiCommand) SetConfigFilePath(configFilePath string) *NpmInstallOrCiCommand
- func (nic *NpmInstallOrCiCommand) SetRepoConfig(conf *utils.RepositoryConfig) *NpmInstallOrCiCommand
- type NpmPublishCommand
- func (npc *NpmPublishCommand) CommandName() string
- func (npc *NpmPublishCommand) Init() error
- func (npc *NpmPublishCommand) IsDetailedSummary() bool
- func (npc *NpmPublishCommand) Result() *commandsutils.Result
- func (npc *NpmPublishCommand) Run() error
- func (npc *NpmPublishCommand) ServerDetails() (*config.ServerDetails, error)
- func (npc *NpmPublishCommand) SetArgs(args []string) *NpmPublishCommand
- func (npc *NpmPublishCommand) SetConfigFilePath(configFilePath string) *NpmPublishCommand
- func (npc *NpmPublishCommand) SetDetailedSummary(detailedSummary bool) *NpmPublishCommand
- func (npc *NpmPublishCommand) SetScanOutputFormat(format xrutils.OutputFormat) *NpmPublishCommand
- func (npc *NpmPublishCommand) SetXrayScan(xrayScan bool) *NpmPublishCommand
- type NpmPublishCommandArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonArgs ¶ added in v2.5.0
type CommonArgs struct { NpmCommand // contains filtered or unexported fields }
type InstallCiArgs ¶ added in v2.5.0
type InstallCiArgs struct { CommonArgs // contains filtered or unexported fields }
func NewInstallCiArgs ¶ added in v2.5.0
func NewInstallCiArgs(npmCommand string) *InstallCiArgs
func (*InstallCiArgs) GetDependenciesList ¶ added in v2.5.0
func (ica *InstallCiArgs) GetDependenciesList() map[string]*npmutils.Dependency
func (*InstallCiArgs) ServerDetails ¶ added in v2.5.0
func (ica *InstallCiArgs) ServerDetails() (*config.ServerDetails, error)
func (*InstallCiArgs) SetPackageInfo ¶ added in v2.5.0
func (ica *InstallCiArgs) SetPackageInfo(packageInfo *npmutils.PackageInfo) *InstallCiArgs
func (*InstallCiArgs) SetThreads ¶ added in v2.5.0
func (ica *InstallCiArgs) SetThreads(threads int) *InstallCiArgs
func (*InstallCiArgs) SetTypeRestriction ¶ added in v2.5.0
func (ica *InstallCiArgs) SetTypeRestriction(typeRestriction npmutils.TypeRestriction) *InstallCiArgs
type NativeCommand ¶ added in v2.5.0
type NativeCommand struct { *NativeCommandArgs // contains filtered or unexported fields }
NativeCommand represents any npm command which is not "install", "ci" or "publish".
func NewNpmNativeCommand ¶ added in v2.5.0
func NewNpmNativeCommand(cmdName string) *NativeCommand
func (*NativeCommand) CommandName ¶ added in v2.5.0
func (nnc *NativeCommand) CommandName() string
func (*NativeCommand) Init ¶ added in v2.5.0
func (nnc *NativeCommand) Init() error
func (*NativeCommand) Run ¶ added in v2.5.0
func (nnc *NativeCommand) Run() error
func (*NativeCommand) SetConfigFilePath ¶ added in v2.5.0
func (nnc *NativeCommand) SetConfigFilePath(configFilePath string) *NativeCommand
func (*NativeCommand) SetServerDetails ¶ added in v2.5.0
func (nnc *NativeCommand) SetServerDetails(serverDetails *config.ServerDetails) *NativeCommand
type NativeCommandArgs ¶ added in v2.5.0
type NativeCommandArgs struct {
CommonArgs
}
func (*NativeCommandArgs) ServerDetails ¶ added in v2.5.0
func (nca *NativeCommandArgs) ServerDetails() (*config.ServerDetails, error)
type NpmCommand ¶
type NpmCommand struct {
// contains filtered or unexported fields
}
func (*NpmCommand) SetBuildConfiguration ¶
func (nc *NpmCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *NpmCommand
func (*NpmCommand) SetNpmArgs ¶
func (nc *NpmCommand) SetNpmArgs(npmArgs []string) *NpmCommand
func (*NpmCommand) SetRepo ¶
func (nc *NpmCommand) SetRepo(repo string) *NpmCommand
func (*NpmCommand) SetServerDetails ¶
func (nc *NpmCommand) SetServerDetails(serverDetails *config.ServerDetails) *NpmCommand
type NpmInstallOrCiCommand ¶
type NpmInstallOrCiCommand struct { *InstallCiArgs // contains filtered or unexported fields }
func NewNpmCiCommand ¶
func NewNpmCiCommand() *NpmInstallOrCiCommand
func NewNpmInstallCommand ¶
func NewNpmInstallCommand() *NpmInstallOrCiCommand
func (*NpmInstallOrCiCommand) CommandName ¶
func (nic *NpmInstallOrCiCommand) CommandName() string
func (*NpmInstallOrCiCommand) Init ¶ added in v2.5.0
func (nic *NpmInstallOrCiCommand) Init() error
func (*NpmInstallOrCiCommand) Run ¶
func (nic *NpmInstallOrCiCommand) Run() error
func (*NpmInstallOrCiCommand) SetArgs ¶
func (nic *NpmInstallOrCiCommand) SetArgs(args []string) *NpmInstallOrCiCommand
func (*NpmInstallOrCiCommand) SetConfigFilePath ¶
func (nic *NpmInstallOrCiCommand) SetConfigFilePath(configFilePath string) *NpmInstallOrCiCommand
func (*NpmInstallOrCiCommand) SetRepoConfig ¶
func (nic *NpmInstallOrCiCommand) SetRepoConfig(conf *utils.RepositoryConfig) *NpmInstallOrCiCommand
type NpmPublishCommand ¶
type NpmPublishCommand struct { *NpmPublishCommandArgs // contains filtered or unexported fields }
func NewNpmPublishCommand ¶
func NewNpmPublishCommand() *NpmPublishCommand
func (*NpmPublishCommand) CommandName ¶
func (npc *NpmPublishCommand) CommandName() string
func (*NpmPublishCommand) Init ¶ added in v2.5.0
func (npc *NpmPublishCommand) Init() error
func (*NpmPublishCommand) IsDetailedSummary ¶
func (npc *NpmPublishCommand) IsDetailedSummary() bool
func (*NpmPublishCommand) Result ¶
func (npc *NpmPublishCommand) Result() *commandsutils.Result
func (*NpmPublishCommand) Run ¶
func (npc *NpmPublishCommand) Run() error
func (*NpmPublishCommand) ServerDetails ¶
func (npc *NpmPublishCommand) ServerDetails() (*config.ServerDetails, error)
func (*NpmPublishCommand) SetArgs ¶
func (npc *NpmPublishCommand) SetArgs(args []string) *NpmPublishCommand
func (*NpmPublishCommand) SetConfigFilePath ¶
func (npc *NpmPublishCommand) SetConfigFilePath(configFilePath string) *NpmPublishCommand
func (*NpmPublishCommand) SetDetailedSummary ¶
func (npc *NpmPublishCommand) SetDetailedSummary(detailedSummary bool) *NpmPublishCommand
func (*NpmPublishCommand) SetScanOutputFormat ¶ added in v2.4.1
func (npc *NpmPublishCommand) SetScanOutputFormat(format xrutils.OutputFormat) *NpmPublishCommand
func (*NpmPublishCommand) SetXrayScan ¶
func (npc *NpmPublishCommand) SetXrayScan(xrayScan bool) *NpmPublishCommand
type NpmPublishCommandArgs ¶
type NpmPublishCommandArgs struct { NpmCommand // contains filtered or unexported fields }
func NewNpmPublishCommandArgs ¶
func NewNpmPublishCommandArgs() *NpmPublishCommandArgs
Click to show internal directories.
Click to hide internal directories.