client

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitLines

func SplitLines(s string) []string

Types

type Globals added in v1.4.0

type Globals struct {
	Client  cachev1connect.CacheServiceClient
	Version string
	Debug   bool
}

type RestoreCmd

type RestoreCmd struct {
	Key            string `help:"key to use for the cache entry" required:"" env:"INPUT_KEY"`
	FallbackBranch string `help:"fallback branch to use for the cache entry" env:"INPUT_FALLBACK_BRANCH"`
	Path           string `help:"Path list for a cache entry." env:"INPUT_PATH"`
	TokenSource    string `help:"token source" default:"github_actions" env:"INPUT_TOKEN_SOURCE"`
	Branch         string `help:"branch to use for the cache entry" env:"INPUT_BRANCH" required:""`
	Name           string `help:"repository, project or pipeline name to use for the cache entry" env:"INPUT_REPOSITORY" required:""`
	Owner          string `help:"owner of the cache entry" env:"INPUT_OWNER"`
	Clean          bool   `help:"clean the path before restore" env:"INPUT_CLEAN"`
}

func (*RestoreCmd) Run

func (c *RestoreCmd) Run(ctx context.Context, globals *Globals) error

type SaveCmd

type SaveCmd struct {
	Key         string `help:"key to use for the cache entry" required:"" env:"INPUT_KEY"`
	Path        string `help:"Path list for a cache entry." env:"INPUT_PATH"`
	TokenSource string `help:"token source" default:"github_actions" env:"INPUT_TOKEN_SOURCE"`
	Branch      string `help:"branch to use for the cache entry" env:"INPUT_BRANCH" required:""`
	Name        string `help:"repository, project or pipeline name to use for the cache entry" env:"INPUT_REPOSITORY" required:""`
	Owner       string `help:"owner of the cache entry" env:"INPUT_OWNER"`
	Skip        bool   `help:"Skip saving the cache entry." env:"INPUT_SKIP"`
}

func (*SaveCmd) Run

func (c *SaveCmd) Run(ctx context.Context, globals *Globals) error

Jump to

Keyboard shortcuts

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