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

package block

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


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 4 packages. Updated 2020-07-22. Refresh now. Tools for package owners.