core

package
v0.0.0-...-8306047 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	ConfigBasePath string
	// contains filtered or unexported fields
}

Core gives access to essential parts of the application.

func New

func New() *Core

New returns a new Core instance.

func (*Core) Client

func (c *Core) Client() (*client.Client, error)

Client returns a preconfigured Docker API client.

func (*Core) Config

func (c *Core) Config() *config.Configuration

Config returns the loaded configuration.

func (*Core) ConfigPath

func (c *Core) ConfigPath(path string) string

ConfigPath returns the path to the given config file.

func (*Core) Here

func (c *Core) Here() (string, error)

Here returns the current working directory.

func (*Core) LoadConfig

func (c *Core) LoadConfig(path string) error

LoadConfig loads the configuration from the given path or from the default location if empty.

Jump to

Keyboard shortcuts

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