juju: github.com/juju/juju/api/block Index | Files

package block

import "github.com/juju/juju/api/block"

Index

Package Files

client.go

type Client Uses

type Client struct {
    base.ClientFacade
    // contains filtered or unexported fields
}

Client allows access to the block API end point.

func NewClient Uses

func NewClient(st base.APICallCloser) *Client

NewClient creates a new client for accessing the block API.

func (*Client) List Uses

func (c *Client) List() ([]params.Block, error)

List returns blocks that are switched on for current model.

func (*Client) SwitchBlockOff Uses

func (c *Client) SwitchBlockOff(blockType string) error

SwitchBlockOff switches desired block off for the current model. Valid block types are "BlockDestroy", "BlockRemove" and "BlockChange".

func (*Client) SwitchBlockOn Uses

func (c *Client) SwitchBlockOn(blockType, msg string) error

SwitchBlockOn switches desired block on for the current model. Valid block types are "BlockDestroy", "BlockRemove" and "BlockChange".

Package block imports 3 packages (graph) and is imported by 128 packages. Updated 2016-07-16. Refresh now. Tools for package owners.