publish

package
v1.6.10-rc Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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 MessagesContext struct {
	CliVersion  string
	LocalConfig LocalConfig
	Messager    Messager
	Printer     Printer
	CliClient   *cliClient.CliClient
}

type Printer

type Printer interface {
	PrintMessage(messageText string, messageColor string)
}

type PublishCommandContext

type PublishCommandContext struct {
	CliVersion       string
	LocalConfig      LocalConfig
	Messager         Messager
	Printer          Printer
	PublishCliClient CliClient
	FilesExtractor   files.FilesExtractorInterface
}

Jump to

Keyboard shortcuts

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