config

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalRegistry  = "localhost/kubefox"
	GitHubClientId = "a76b4dc61b6fec162ef6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitHub            GitHub            `json:"github"`
	KubeFox           KubeFox           `json:"kubefox"`
	Kind              Kind              `json:"kind"`
	ContainerRegistry ContainerRegistry `json:"containerRegistry"`

	RepoPath string `json:"-"`
	AppPath  string `json:"-"`

	Flags Flags `json:"-"`
	Fresh bool  `json:"-"`
	// contains filtered or unexported fields
}

func (*Config) CleanPaths

func (cfg *Config) CleanPaths(defAppToWd bool)

func (*Config) GetContainerRegistry added in v0.8.2

func (cfg *Config) GetContainerRegistry() ContainerRegistry

func (*Config) IsRegistryLocal

func (cfg *Config) IsRegistryLocal() bool

func (*Config) Load

func (cfg *Config) Load()

func (*Config) Setup

func (cfg *Config) Setup()

func (*Config) Write

func (cfg *Config) Write()

type ContainerRegistry

type ContainerRegistry struct {
	Address  string `json:"address" validate:"required"`
	Token    string `json:"token"`
	Username string `json:"username"`
}

type Flags

type Flags struct {
	// persistent flags defined in root command
	Timeout time.Duration

	AppPath          string
	OutFormat        string
	RegistryAddress  string
	RegistryToken    string
	RegistryUsername string

	DryRun  bool
	Info    bool
	Verbose bool

	// flags used by subcommands
	AppDeployment string
	Builder       string
	Kind          string
	Namespace     string
	Platform      string
	Version       string
	VirtEnv       string

	CreateTag  bool
	ForceBuild bool
	Generate   bool
	GraphQL    bool
	NoCache    bool
	PushImage  bool
	Quickstart bool
	SkipDeploy bool

	WaitTime time.Duration
}

type GitHub

type GitHub struct {
	Org   GitHubOrg  `json:"org"`
	User  GitHubUser `json:"user"`
	Token string     `json:"token"`
}

type GitHubError

type GitHubError struct {
	Msg    string `json:"message"`
	DocURL string `json:"documentation_url"`
}

type GitHubOrg

type GitHubOrg struct {
	Id   int    `json:"id"`
	Name string `json:"login"`
	URL  string `json:"url" validate:"url"`
}

type GitHubUser

type GitHubUser struct {
	Id        int    `json:"id"`
	Name      string `json:"login"`
	AvatarURL string `json:"avatar_url" validate:"url"`
	URL       string `json:"html_url" validate:"url"`
}

type Kind

type Kind struct {
	ClusterName string `json:"clusterName"`
	AlwaysLoad  bool   `json:"alwaysLoad"`
}

type KubeFox

type KubeFox struct {
	Namespace string `json:"namespace"`
	Platform  string `json:"platform"`
}

Jump to

Keyboard shortcuts

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