pkg

package
v0.0.0-...-3abe282 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRequiredFlagSet

func IsRequiredFlagSet(name string) error

IsRequiredFlagSet checks whether a flag is provided which is required.

Types

type Config

type Config struct {
	APIKeyID     string
	APIKeySecret string
	Address      string
	Email        string
}

Config defines configuration for the Krok server client.

type KrokClient

type KrokClient struct {
	ApiKeyClient     *auth.Client
	CommandClient    *command.Client
	CommandRunClient *runs.Client
	EventClient      *event.Client
	PlatformClient   *platform.Client
	RepositoryClient *repository.Client
	SettingsClient   *setting.Client
	UserClient       *user.Client
	VaultClient      *vault.Client
	VcsClient        *vcs.Client
}

KrokClient is the main client for the Krok server.

func NewKrokClient

func NewKrokClient(cfg Config, log zerolog.Logger) *KrokClient

NewKrokClient creates a new Krok server client.

Directories

Path Synopsis
vcs

Jump to

Keyboard shortcuts

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