plugin

package
v0.0.0-...-c67418e Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	State
}

func (*File) Close

func (f *File) Close(_ context.Context, options map[string]string) error

func (*File) Open

func (f *File) Open(_ context.Context, options map[string]string) error

type GitCommit

type GitCommit struct{}

func (*GitCommit) GetTag

func (g *GitCommit) GetTag(ctx context.Context, container string, options map[string]string) (string, error)

type GitRepo

type GitRepo struct {
	State
	// contains filtered or unexported fields
}

func (*GitRepo) Close

func (g *GitRepo) Close(ctx context.Context, options map[string]string) error

func (*GitRepo) Open

func (g *GitRepo) Open(ctx context.Context, options map[string]string) error

type InputPlugin

type InputPlugin interface {
	GetTag(ctx context.Context, name string, options map[string]string) (string, error)
}

func NewInputPlugin

func NewInputPlugin(name string, options map[string]string) (InputPlugin, error)

NewInputPlugin validates options and returns the named input plugin.

type OutputPlugin

type OutputPlugin interface {
	Add(key, value string)
	Open(ctx context.Context, options map[string]string) error
	Close(ctx context.Context, options map[string]string) error
}

func NewOutputPlugin

func NewOutputPlugin(name string, options map[string]string) (OutputPlugin, error)

NewOutputPlugin validates options and returns the named output plugin.

type Semver

type Semver struct{}

func (*Semver) GetTag

func (s *Semver) GetTag(ctx context.Context, container string, options map[string]string) (string, error)

type State

type State struct {
	Containers map[string]string `yaml:"containers"`
	// contains filtered or unexported fields
}

func (*State) Add

func (s *State) Add(key, value string)

func (*State) Marshal

func (s *State) Marshal() ([]byte, error)

type Version

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

Jump to

Keyboard shortcuts

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