devcheck

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinDockerComposeVersion = semver.MustParse("2.13.0")
View Source
var MinDockerVersion = semver.MustParse("23.0.0")

Functions

This section is empty.

Types

type CheckList

type CheckList struct {
	List []Checkable
}

func NewCheckList

func NewCheckList(args ...Checkable) *CheckList

func (*CheckList) Add

func (c *CheckList) Add(chk Checkable) *CheckList

func (*CheckList) Check

func (c *CheckList) Check(l *Logger) error

type Checkable

type Checkable interface {
	Check(*Logger) error
}

type CommandCheck

type CommandCheck struct {
	Command    string
	InstallUrl string
	Path       string
}

func NewCommandCheck

func NewCommandCheck(command string) *CommandCheck

func (*CommandCheck) Check

func (c *CommandCheck) Check(l *Logger) error

func (*CommandCheck) WithInstallUrl

func (c *CommandCheck) WithInstallUrl(url string) *CommandCheck

type DockerCheck

type DockerCheck struct {
	CommandCheck *CommandCheck
}

func NewDockerCheck

func NewDockerCheck(dockerCommand *CommandCheck) *DockerCheck

func (*DockerCheck) Check

func (c *DockerCheck) Check(l *Logger) error

type FreshnessCheck

type FreshnessCheck struct {
	VersionCheck *VersionCheck
}

func NewFreshnessCheck

func NewFreshnessCheck(c *VersionCheck) *FreshnessCheck

func (*FreshnessCheck) Check

func (c *FreshnessCheck) Check(l *Logger) error

type GCloudCheck

type GCloudCheck struct {
	CommandCheck           *CommandCheck
	RequiredIdentitySuffix string
}

func NewGCloudCheck

func NewGCloudCheck(gcloudCommand *CommandCheck) *GCloudCheck

func (*GCloudCheck) Check

func (c *GCloudCheck) Check(l *Logger) error

func (*GCloudCheck) WithRequiredIdentitySuffix

func (c *GCloudCheck) WithRequiredIdentitySuffix(suffix string) *GCloudCheck

type Logger

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

func NewLogger

func NewLogger() *Logger

func (*Logger) Bullet

func (l *Logger) Bullet(format string, a ...interface{})

func (*Logger) Failure

func (l *Logger) Failure(format string, a ...interface{})

func (*Logger) Indented

func (l *Logger) Indented() *Logger

func (*Logger) Info

func (l *Logger) Info(format string, a ...interface{})

func (*Logger) Success

func (l *Logger) Success(format string, a ...interface{})

func (*Logger) Warning

func (l *Logger) Warning(format string, a ...interface{})

type NilCheck

type NilCheck struct{}

func NewNilCheck

func NewNilCheck() *NilCheck

func (*NilCheck) Check

func (c *NilCheck) Check(l *Logger) error

type PlatformCheck

type PlatformCheck struct {
	Supported []string
}

func NewPlatformCheck

func NewPlatformCheck(supported []string) *PlatformCheck

func (*PlatformCheck) Check

func (c *PlatformCheck) Check(l *Logger) error

type SSHCheck

type SSHCheck struct {
	Connections []string
}

func NewSSHCheck

func NewSSHCheck(arg ...string) *SSHCheck

func (*SSHCheck) Add

func (s *SSHCheck) Add(connection string) *SSHCheck

func (*SSHCheck) Check

func (s *SSHCheck) Check(l *Logger) error

type SSHConnection

type SSHConnection struct {
	User string
	Addr string
}

type SectionCheck

type SectionCheck struct {
	Title    string
	Contents Checkable
}

func NewSectionCheck

func NewSectionCheck(title string, contents Checkable) *SectionCheck

func (*SectionCheck) Check

func (s *SectionCheck) Check(l *Logger) error

type VersionCheck

type VersionCheck struct {
	Version        string
	ReleaseRefName string
}

func NewVersionCheck

func NewVersionCheck() *VersionCheck

func (*VersionCheck) Check

func (c *VersionCheck) Check(l *Logger) error

Jump to

Keyboard shortcuts

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