github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/block/state.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package block
     5  
     6  import "github.com/juju/juju/state"
     7  
     8  type blockAccess interface {
     9  	AllBlocks() ([]state.Block, error)
    10  	SwitchBlockOn(t state.BlockType, msg string) error
    11  	SwitchBlockOff(t state.BlockType) error
    12  }
    13  
    14  type stateShim struct {
    15  	*state.State
    16  }