"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/backend/remote-state/etcdv2/client.go" between
terraform-1.0.2.tar.gz and terraform-1.0.3.tar.gz

About: Terraform is a tool for building, changing, and versioning a datacenter infrastructure (written in Go).

client.go  (terraform-1.0.2):client.go  (terraform-1.0.3)
package etcdv2 package etcdv2
import ( import (
"context" "context"
"crypto/md5" "crypto/md5"
"fmt" "fmt"
etcdapi "github.com/coreos/etcd/client"
"github.com/hashicorp/terraform/internal/states/remote" "github.com/hashicorp/terraform/internal/states/remote"
etcdapi "go.etcd.io/etcd/client"
) )
// EtcdClient is a remote client that stores data in etcd. // EtcdClient is a remote client that stores data in etcd.
type EtcdClient struct { type EtcdClient struct {
Client etcdapi.Client Client etcdapi.Client
Path string Path string
} }
func (c *EtcdClient) Get() (*remote.Payload, error) { func (c *EtcdClient) Get() (*remote.Payload, error) {
resp, err := etcdapi.NewKeysAPI(c.Client).Get(context.Background(), c.Pat h, &etcdapi.GetOptions{Quorum: true}) resp, err := etcdapi.NewKeysAPI(c.Client).Get(context.Background(), c.Pat h, &etcdapi.GetOptions{Quorum: true})
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)