Help us shape the future of Go! Take the 2026 Go Developer Survey

schedule

package
v0.28.2 Latest Latest
Warning

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

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

Documentation

Overview

Package schedule provides the defined CLI schedule actions for Vela.

Usage:

import "github.com/go-vela/cli/action/schedule"

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
	Repo    string
	Active  bool
	Name    string
	Entry   string
	Page    int
	PerPage int
	Output  string
	Branch  string
	Color   output.ColorOptions
}

Config represents the configuration necessary to perform schedule related requests with Vela.

func (*Config) Add

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

Add creates a schedule based off the provided configuration.

func (*Config) Get

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

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

func (*Config) Remove

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

Remove deletes a schedule based off the provided configuration.

func (*Config) Update

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

Update modifies a schedule 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 schedule based off the provided configuration.

Jump to

Keyboard shortcuts

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