publish

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 11 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 JSONSchemaValidator added in v1.8.41

type JSONSchemaValidator interface {
	ValidateYamlSchema(yamlSchema string, yaml string) ([]jsonschema.Detailed, 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)
	PrintYamlSchemaResults(errorsResult []jsonschema.Detailed, error error)
}

type PublishCommandContext

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

Jump to

Keyboard shortcuts

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