serviceversion

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package serviceversion contains commands to inspect and manipulate Fastly service versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateCommand

type ActivateCommand struct {
	cmd.Base

	Input fastly.ActivateVersionInput
	// contains filtered or unexported fields
}

ActivateCommand calls the Fastly API to activate a service version.

func NewActivateCommand

func NewActivateCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *ActivateCommand

NewActivateCommand returns a usable command registered under the parent.

func (*ActivateCommand) Exec

func (c *ActivateCommand) Exec(in io.Reader, out io.Writer) error

Exec invokes the application logic for the command.

type CloneCommand

type CloneCommand struct {
	cmd.Base

	Input fastly.CloneVersionInput
	// contains filtered or unexported fields
}

CloneCommand calls the Fastly API to clone a service version.

func NewCloneCommand

func NewCloneCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *CloneCommand

NewCloneCommand returns a usable command registered under the parent.

func (*CloneCommand) Exec

func (c *CloneCommand) Exec(in io.Reader, out io.Writer) error

Exec invokes the application logic for the command.

type DeactivateCommand

type DeactivateCommand struct {
	cmd.Base

	Input fastly.DeactivateVersionInput
	// contains filtered or unexported fields
}

DeactivateCommand calls the Fastly API to deactivate a service version.

func NewDeactivateCommand

func NewDeactivateCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *DeactivateCommand

NewDeactivateCommand returns a usable command registered under the parent.

func (*DeactivateCommand) Exec

func (c *DeactivateCommand) Exec(in io.Reader, out io.Writer) error

Exec invokes the application logic for the command.

type ListCommand

type ListCommand struct {
	cmd.Base

	Input fastly.ListVersionsInput
	// contains filtered or unexported fields
}

ListCommand calls the Fastly API to list services.

func NewListCommand

func NewListCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *ListCommand

NewListCommand returns a usable command registered under the parent.

func (*ListCommand) Exec

func (c *ListCommand) Exec(in io.Reader, out io.Writer) error

Exec invokes the application logic for the command.

type LockCommand

type LockCommand struct {
	cmd.Base

	Input fastly.LockVersionInput
	// contains filtered or unexported fields
}

LockCommand calls the Fastly API to lock a service version.

func NewLockCommand

func NewLockCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *LockCommand

NewLockCommand returns a usable command registered under the parent.

func (*LockCommand) Exec

func (c *LockCommand) Exec(in io.Reader, out io.Writer) error

Exec invokes the application logic for the command.

type RootCommand

type RootCommand struct {
	cmd.Base
}

RootCommand is the parent command for all subcommands in this package. It should be installed under the primary root command.

func NewRootCommand

func NewRootCommand(parent cmd.Registerer, globals *config.Data) *RootCommand

NewRootCommand returns a new command registered in the parent.

func (*RootCommand) Exec

func (c *RootCommand) Exec(in io.Reader, out io.Writer) error

Exec implements the command interface.

type UpdateCommand

type UpdateCommand struct {
	cmd.Base
	// contains filtered or unexported fields
}

UpdateCommand calls the Fastly API to update a service version.

func NewUpdateCommand

func NewUpdateCommand(parent cmd.Registerer, globals *config.Data, data manifest.Data) *UpdateCommand

NewUpdateCommand returns a usable command registered under the parent.

func (*UpdateCommand) Exec

func (c *UpdateCommand) Exec(in io.Reader, out io.Writer) error

Exec invokes the application logic for the command.

Jump to

Keyboard shortcuts

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