validate

package
v0.0.0-...-8a7d5bb Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindOptions

func BindOptions(opts *RawOptions, cmd *cobra.Command) error

func DetermineMergeBase

func DetermineMergeBase(ctx context.Context, dir, centralRemoteUrl string) (string, error)

DetermineMergeBase determines the merge base between HEAD and what we think the upstream target branch is.

func NewCommand

func NewCommand(centralRemoteUrl string) (*cobra.Command, error)

func ValidateServiceConfig

func ValidateServiceConfig(
	ctx context.Context,
	contexts map[string]map[string][]RegionContext,
	serviceConfig config.ConfigProvider,
	serviceConfigFile string,
	digests *Digests,
	outputDir string,
	update bool,
	digestFile string,
	centralRemoteUrl string,
) error

Types

type CloudDigests

type CloudDigests struct {
	Environments map[string]EnvironmentDigests `json:"environments"`
}

type Digests

type Digests struct {
	Clouds map[string]CloudDigests `json:"clouds"`
}

func LoadDigests

func LoadDigests(path string) (*Digests, error)

type EnvironmentDigests

type EnvironmentDigests struct {
	Regions map[string]string `json:"regions"`
}

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) ValidateServiceConfig

func (opts *Options) ValidateServiceConfig(ctx context.Context) error

type RawOptions

type RawOptions struct {
	ServiceConfigFile string
	DevSettingsFile   string
	CentralRemoteUrl  string

	DigestFile string
	OutputDir  string
	Update     bool
}

RawOptions holds input values.

func DefaultOptions

func DefaultOptions(outputDir string, url string) *RawOptions

func (*RawOptions) Validate

func (o *RawOptions) Validate() (*ValidatedOptions, error)

type RegionContext

type RegionContext struct {
	Region              string
	Ev2Cloud            string
	RegionShortOverride string
	RegionShortSuffix   string
	Stamp               int
}

type ValidatedOptions

type ValidatedOptions struct {
	// contains filtered or unexported fields
}

func (*ValidatedOptions) Complete

func (o *ValidatedOptions) Complete() (*Options, error)

Jump to

Keyboard shortcuts

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