You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and 4. line of code is what I had before and it worked. Now I wanted to implement Godep but it looks like that I am a little bit too late.
First four lines below are what I had before and it worked. Now I am trying to implement it like you implemented it in example.go ... but keep getting errors...
not enough arguments in call to kinesis.NewAuth
undefined: kinesis.Region (even if i pass kinesis.Region{} as second parameter to kinesis.New function
cannot use &auth (type *_kinesis.AuthCredentials) as type kinesis.Auth in argument to kinesis.New:
*_kinesis.AuthCredentials does not implement kinesis.Auth (missing GetAccessKey method)
I would really appreciate some help here... since code don't work for me the way it is in example.go.
Best,
Tomaz
// KINESIS AUTHENTIACTION
// set env variables AWS_ACCESS_KEY and AWS_SECRET_KEY AWS_REGION_NAME
//auth := kinesis.NewAuth()
//ksis := kinesis.New(&auth, kinesis.Region{})
var (
err error
auth kinesis.Auth
)
auth, err = kinesis.NewAuthFromEnv()
if err != nil {
fmt.Printf("unable to retrieve authentication credentials from the environment: %v", err)
os.Exit(1)
}
ksis := kinesis.New(auth, "")
The text was updated successfully, but these errors were encountered:
First four lines below are what I had before and it worked. Now I am trying to implement it like you implemented it in example.go ... but keep getting errors...
*_kinesis.AuthCredentials does not implement kinesis.Auth (missing GetAccessKey method)
I would really appreciate some help here... since code don't work for me the way it is in example.go.
Best,
Tomaz
The text was updated successfully, but these errors were encountered: