Documentation ¶
Overview ¶
Package repo provides the defined CLI repository actions for Vela.
Usage:
import "github.com/go-vela/cli/action/repo"
SPDX-License-Identifier: Apache-2.0
Index ¶
- type Config
- func (c *Config) Add(client *vela.Client) error
- func (c *Config) Chown(client *vela.Client) error
- func (c *Config) Get(client *vela.Client) error
- func (c *Config) Remove(client *vela.Client) error
- func (c *Config) Repair(client *vela.Client) error
- func (c *Config) Sync(client *vela.Client) error
- func (c *Config) SyncAll(client *vela.Client) error
- func (c *Config) Update(client *vela.Client) error
- func (c *Config) Validate() error
- func (c *Config) View(client *vela.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Action string Org string Name string Branch string Link string Clone string Visibility string BuildLimit int64 Timeout int64 Counter int Private bool Trusted bool Active bool Events []string PipelineType string ApproveBuild string Page int PerPage int Output string Color output.ColorOptions }
Config represents the configuration necessary to perform repository related requests with Vela.
func (*Config) Chown ¶
Chown changes ownership of a repository based off the provided configuration.
func (*Config) Sync ¶ added in v0.12.0
Sync synchronizes a single repository in the Vela Database with the SCM.
func (*Config) SyncAll ¶ added in v0.12.0
SyncAll synchronizes all org repositories in the Vela Database with the SCM.
Click to show internal directories.
Click to hide internal directories.