Documentation ¶
Index ¶
- func AuthChecker(h *Harbor) check.Checker
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- type CommandOption
- type Config
- type Harbor
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthChecker ¶ added in v0.3.1
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, harbor *Harbor, opts ...CommandOption) *Command
func (*Command) Description ¶
type CommandOption ¶
type CommandOption func(*Command)
func CommandWithName ¶
func CommandWithName(v string) CommandOption
type Config ¶
type Config struct { URL string `json:"url" yaml:"url"` AuthURL string `json:"authUrl" yaml:"authUrl"` Project string `json:"project" yaml:"project"` }
func (Config) DockerRegistry ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.