juju: github.com/juju/juju/resource/context/cmd Index | Files

package cmd

import "github.com/juju/juju/resource/context/cmd"

Index

Package Files

cmd.go get.go

Constants

const GetCmdName = "resource-get"

GetCmdName is the name of the resource-get command.

type GetCmd Uses

type GetCmd struct {
    cmd.CommandBase
    // contains filtered or unexported fields
}

GetCmd provides the functionality of the resource-get command.

func NewGetCmd Uses

func NewGetCmd(c jujuc.ContextComponent) (*GetCmd, error)

NewGetCmd creates a new GetCmd for the given hook context.

func (GetCmd) Info Uses

func (c GetCmd) Info() *cmd.Info

Info implements cmd.Command.

func (*GetCmd) Init Uses

func (c *GetCmd) Init(args []string) error

Init implements cmd.Command.

func (GetCmd) Run Uses

func (c GetCmd) Run(ctx *cmd.Context) error

Run implements cmd.Command.

type HookContext Uses

type HookContext interface {
    // Download downloads the named resource and returns
    // the path to which it was downloaded.
    Download(name string) (filePath string, _ error)
}

HookContext exposes the functionality needed by the "resource-*" hook commands.

Package cmd imports 5 packages (graph) and is imported by 7 packages. Updated 2019-01-01. Refresh now. Tools for package owners.