Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx *PublishCommandContext) *cobra.Command
Types ¶
type CliClient ¶
type CliClient interface {
PublishPolicies(policiesConfiguration files.UnknownStruct, token string) (*cliClient.PublishFailedResponse, error)
}
type LocalConfig ¶
type LocalConfig interface {
GetLocalConfiguration() (*localConfig.LocalConfig, error)
}
type Messager ¶
type Messager interface {
LoadVersionMessages(cliVersion string) chan *messager.VersionMessage
}
type MessagesContext ¶
type PublishCommandContext ¶
type PublishCommandContext struct { CliVersion string LocalConfig LocalConfig Messager Messager Printer Printer PublishCliClient CliClient FilesExtractor files.FilesExtractorInterface }
Click to show internal directories.
Click to hide internal directories.