juju: github.com/juju/juju/apiserver/facades/client/block Index | Files

package block

import "github.com/juju/juju/apiserver/facades/client/block"

Index

Package Files

client.go state.go

type API Uses

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

API implements Block interface and is the concrete implementation of the api end point.

func NewAPI Uses

func NewAPI(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*API, error)

NewAPI returns a new block API facade.

func (*API) List Uses

func (a *API) List() (params.BlockResults, error)

List implements Block.List().

func (*API) SwitchBlockOff Uses

func (a *API) SwitchBlockOff(args params.BlockSwitchParams) params.ErrorResult

SwitchBlockOff implements Block.SwitchBlockOff().

func (*API) SwitchBlockOn Uses

func (a *API) SwitchBlockOn(args params.BlockSwitchParams) params.ErrorResult

SwitchBlockOn implements Block.SwitchBlockOn().

type Block Uses

type Block interface {
    // List returns all current blocks for this model.
    List() (params.BlockResults, error)

    // SwitchBlockOn switches desired block type on for this
    // model.
    SwitchBlockOn(params.BlockSwitchParams) params.ErrorResult

    // SwitchBlockOff switches desired block type off for this
    // model.
    SwitchBlockOff(params.BlockSwitchParams) params.ErrorResult
}

Block defines the methods on the block API end point.

Package block imports 7 packages (graph) and is imported by 3 packages. Updated 2019-09-26. Refresh now. Tools for package owners.