Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
func New ¶
Example ¶
package main import ( "context" "fmt" "log" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/ssm" "gitlab.com/rarifytech/ssmkv" ) func main() { cfg, err := config.LoadDefaultConfig(context.TODO()) if err != nil { log.Fatalf("failed to init aws config:%v", err) } client := ssm.NewFromConfig(cfg) getter := ssmkv.New(client, "stage-prefix/maybe-service") m, err := getter.GetStringMap("some-key") fmt.Println(m, err) }
Output: map[] <nil>
Click to show internal directories.
Click to hide internal directories.