prepare

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const VERSION = "0.2.3"

Variables

This section is empty.

Functions

func GetAllRecordsForKey

func GetAllRecordsForKey(document *jsonquery.Node, key string) []*jsonquery.Node

func GetAllValuesForKey

func GetAllValuesForKey(document *jsonquery.Node, key string) []string

func GetDocumentFromFile

func GetDocumentFromFile(filename string, isInJSONLFormat bool) *jsonquery.Node

func GetValueForQueryBoolean

func GetValueForQueryBoolean(document *jsonquery.Node, requestedField string, queryKey string, matchCondition bool) []string

func GetValueForQueryKey

func GetValueForQueryKey(document *jsonquery.Node, requestedField string, queryKey string, query []string) []string

func GetValuesForKey

func GetValuesForKey(document *jsonquery.Node, key string) []string

Types

type Config

type Config struct {
	ProjectsPath string `yaml:"projects_path"`
	HostMapping  string `yaml:"host_mapping,omitempty"`
	PortsSimple  string `yaml:"ports_simple,omitempty"`
	ServicesFile string `yaml:"services_file,omitempty"`
}

type Host

type Host struct {
	IPv4      string
	Hostnames []string
	Ports     []string
}

type Options

type Options struct {
	SettingsFile string
	Project      string
	BaseFolder   string
	HostMapping  bool
	TLSCheckFull bool
	Silent       bool
	Version      bool
	NoColor      bool
	Verbose      bool
}

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line flags provided by a user

type Preparer

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

func NewPreparer

func NewPreparer(options *Options) (*Preparer, error)

func (*Preparer) Prepare

func (p *Preparer) Prepare() error

type Project

type Project struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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