lease

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireCommand

type AcquireCommand struct {
	*command.Context
	*cobra.Command

	ContainerName string
	Duration      int32
}

az storage container lease acquire \ --container-name $AZURE_STORAGE_CONTAINER \ --lease-duration 60

func NewAcquireCommand

func NewAcquireCommand(cxt *command.Context) *AcquireCommand

func (*AcquireCommand) Acquire

func (c *AcquireCommand) Acquire() error

func (*AcquireCommand) Run

func (c *AcquireCommand) Run() error

func (*AcquireCommand) Validate

func (c *AcquireCommand) Validate(args []string) error

type SubCommand

type SubCommand struct {
	*command.Context
	*cobra.Command
}

func NewSubCommand

func NewSubCommand(cxt *command.Context) *SubCommand

Jump to

Keyboard shortcuts

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