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 JSONSchemaValidator ¶ added in v1.8.41
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 JSONSchemaValidator JSONSchemaValidator }
Click to show internal directories.
Click to hide internal directories.