Versions in this module Expand all Collapse all v0 v0.3.6 Jan 6, 2015 v0.3.5 Dec 10, 2014 Changes in this version + const BackupHiddenStateFile + const HiddenStateFile + const LocalDirectory + var ErrConflict = fmt.Errorf("Conflicting state file") + var ErrInvalidAuth = fmt.Errorf("Invalid authentication") + var ErrRemoteInternal = fmt.Errorf("Remote server reporting internal error") + var ErrRequireAuth = fmt.Errorf("Remote server requires authentication") + var ErrServerNewer = fmt.Errorf("Server-side Serial is newer") + func CopyFile(src, dst string) error + func DeleteState(conf *terraform.RemoteState) error + func EnsureDirectory() error + func ExistsFile(path string) (bool, error) + func HaveLocalState() (bool, error) + func HiddenStatePath() (string, error) + func Persist(r io.Reader) error + func PersistState(s *terraform.State) error + func ReadLocalState() (*terraform.State, []byte, error) + func ValidConfig(conf *terraform.RemoteState) error + type AtlasRemoteClient struct + func NewAtlasRemoteClient(conf map[string]string) (*AtlasRemoteClient, error) + func (c *AtlasRemoteClient) DeleteState() error + func (c *AtlasRemoteClient) GetState() (*RemoteStatePayload, error) + func (c *AtlasRemoteClient) PutState(state []byte, force bool) error + type ConsulRemoteClient struct + func NewConsulRemoteClient(conf map[string]string) (*ConsulRemoteClient, error) + func (c *ConsulRemoteClient) DeleteState() error + func (c *ConsulRemoteClient) GetState() (*RemoteStatePayload, error) + func (c *ConsulRemoteClient) PutState(state []byte, force bool) error + type HTTPRemoteClient struct + func NewHTTPRemoteClient(conf map[string]string) (*HTTPRemoteClient, error) + func (c *HTTPRemoteClient) DeleteState() error + func (c *HTTPRemoteClient) GetState() (*RemoteStatePayload, error) + func (c *HTTPRemoteClient) PutState(state []byte, force bool) error + type RemoteClient interface + DeleteState func() error + GetState func() (*RemoteStatePayload, error) + PutState func(state []byte, force bool) error + func NewClientByState(remote *terraform.RemoteState) (RemoteClient, error) + func NewClientByType(ctype string, conf map[string]string) (RemoteClient, error) + type RemoteStatePayload struct + MD5 []byte + State []byte + type StateChangeResult int + const StateChangeConflict + const StateChangeInit + const StateChangeLocalNewer + const StateChangeNoop + const StateChangeRemoteNewer + const StateChangeUpdateLocal + const StateChangeUpdateRemote + func PushState(conf *terraform.RemoteState, force bool) (StateChangeResult, error) + func RefreshState(conf *terraform.RemoteState) (StateChangeResult, error) + func (sc StateChangeResult) String() string + func (sc StateChangeResult) SuccessfulPull() bool + func (sc StateChangeResult) SuccessfulPush() bool