common

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IoConsumeAll

func IoConsumeAll(reader io.Reader) (int64, error)

Types

type AppFlags

type AppFlags struct {
	Url        *string
	Proxy      *string
	File       *string
	Username   *string
	Password   *string
	ConfigFile *string

	IsImport *bool
	IsExport *bool

	IncludeRepoName *bool

	CacheDir *string

	ImageList []string
	Config    *Config
}

type Config

type Config struct {
	Repositories map[string]*RepositoryConfig `json:"repositories"`
}

func ReadConfig

func ReadConfig(filename string) (*Config, error)

type RepositoryConfig

type RepositoryConfig struct {
	Endpoint string `json:"endpoint"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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