prepare

package
v0.0.0-...-9dd695f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const VERSION = "0.2.1"

Variables

This section is empty.

Functions

func AppendIfMissing

func AppendIfMissing(slice []string, key string) []string

func ConvertJSONLtoJSON

func ConvertJSONLtoJSON(input string) string

func ConvertStringArrayToString

func ConvertStringArrayToString(stringArray []string, separator string) string

func CreateDirectoryIfNotExists

func CreateDirectoryIfNotExists(dir string) error

func ExistsInArray

func ExistsInArray(slice []string, key string) bool

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) *jsonquery.Node

func GetHost

func GetHost(str string) string

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

func NewLogger

func NewLogger() *logger

func WriteToTextFileInProject

func WriteToTextFileInProject(filename string, data string)

Types

type Config

type Config struct {
	ProjectsPath string `yaml:"projects_path"`
	HostMapping  string `yaml:"host_mapping,omitempty"`
	PortsSimple  string `yaml:"ports_simple,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