Documentation
¶
Overview ¶
nolint: dupl // ignore similar code among actions
Package secret provides the defined CLI secret actions for Vela.
Usage:
import "github.com/go-vela/cli/action/secret"
nolint: dupl // ignore similar code among actions
Index ¶
- type Config
- func (c *Config) Add(client *vela.Client) error
- func (c *Config) AddFromFile(client *vela.Client) error
- func (c *Config) Get(client *vela.Client) error
- func (c *Config) Remove(client *vela.Client) error
- func (c *Config) Update(client *vela.Client) error
- func (c *Config) UpdateFromFile(client *vela.Client) error
- func (c *Config) Validate() error
- func (c *Config) View(client *vela.Client) error
- type ConfigFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Action string
Engine string
Type string
Org string
Repo string
Team string
Name string
Value string
Images []string
Events []string
AllowCommand bool
File string
Page int
PerPage int
Output string
}
Config represents the configuration necessary to perform secret related requests with Vela.
func (*Config) AddFromFile ¶
AddFromFile creates a secret from a file based on the provided configuration.
func (*Config) UpdateFromFile ¶
UpdateFromFile updates a secret from a file based on the provided configuration.
type ConfigFile ¶
type ConfigFile struct {
Metadata struct {
Version string `yaml:"version,omitempty"`
Engine string `yaml:"engine,omitempty"`
} `yaml:"metadata,omitempty"`
Secrets []*library.Secret `yaml:"secrets,omitempty"`
}
ConfigFile represents the secret configuration necessary to perform secret related requests from a file with Vela.
Click to show internal directories.
Click to hide internal directories.