repo

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

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       int32
	Timeout          int32
	Counter          int64
	Private          bool
	Trusted          bool
	Active           bool
	Events           []string
	MergeQueueEvents []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) Add

func (c *Config) Add(ctx context.Context, client *vela.Client) error

Add creates a repository based off the provided configuration.

func (*Config) Chown

func (c *Config) Chown(ctx context.Context, client *vela.Client) error

Chown changes ownership of a repository based off the provided configuration.

func (*Config) Get

func (c *Config) Get(ctx context.Context, client *vela.Client) error

Get captures a list of repositories based off the provided configuration.

func (*Config) Remove

func (c *Config) Remove(ctx context.Context, client *vela.Client) error

Remove deletes a repository based off the provided configuration.

func (*Config) Repair

func (c *Config) Repair(ctx context.Context, client *vela.Client) error

Repair recreates a repository webhook based off the provided configuration.

func (*Config) Sync added in v0.12.0

func (c *Config) Sync(ctx context.Context, client *vela.Client) error

Sync synchronizes a single repository in the Vela Database with the SCM.

func (*Config) SyncAll added in v0.12.0

func (c *Config) SyncAll(ctx context.Context, client *vela.Client) error

SyncAll synchronizes all org repositories in the Vela Database with the SCM.

func (*Config) Update

func (c *Config) Update(ctx context.Context, client *vela.Client) error

Update modifies a repository based off the provided configuration.

func (*Config) Validate

func (c *Config) Validate() error

Validate verifies the configuration provided.

func (*Config) View

func (c *Config) View(ctx context.Context, client *vela.Client) error

View inspects a repository based off the provided configuration.

Jump to

Keyboard shortcuts

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