client

package
v0.0.0-...-401433d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crontab

type Crontab struct {
	Entries *[]crontab.Task
}

Crontab implements the CF client interface

func (*Crontab) CrontabEntries

func (c *Crontab) CrontabEntries() []crontab.Task

func (*Crontab) GetMetadata

func (c *Crontab) GetMetadata() plugin.PluginMetadata

func (*Crontab) RenderEntries

func (c *Crontab) RenderEntries(entries []*crontab.Task)

func (*Crontab) Run

func (c *Crontab) Run(cliConnection plugin.CliConnection, args []string)

func (*Crontab) ServerEntries

func (c *Crontab) ServerEntries(cliConnection plugin.CliConnection) ([]*crontab.Task, error)

type CrontabServer

type CrontabServer struct {
	// contains filtered or unexported fields
}

func CrontabServerResolver

func CrontabServerResolver(cliConnection plugin.CliConnection) (*CrontabServer, error)

func (CrontabServer) AddEntries

func (c CrontabServer) AddEntries(tasks []crontab.Task) ([]*crontab.Task, error)

func (CrontabServer) DeleteEntry

func (c CrontabServer) DeleteEntry(index int) (bool, error)

func (CrontabServer) GetEntries

func (c CrontabServer) GetEntries() ([]*crontab.Task, error)

func (CrontabServer) GetSecret

func (c CrontabServer) GetSecret() (string, error)

func (CrontabServer) GetToken

func (c CrontabServer) GetToken() (string, error)

func (CrontabServer) Host

func (c CrontabServer) Host() (string, error)

func (CrontabServer) SaveCrontab

func (c CrontabServer) SaveCrontab() error

func (CrontabServer) ServerRequest

func (c CrontabServer) ServerRequest(method, endpoint string, body io.Reader) (*http.Response, error)

Jump to

Keyboard shortcuts

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