Back to

Package util

Latest Go to latest

The latest major version is .

Published: Sep 15, 2020 | License: MPL-2.0 | Module:


func BindingsHCL

func BindingsHCL(bindings map[string]StringSet) (string, error)

func GetTestCredentials

func GetTestCredentials(tb testing.TB) (string, *gcputil.GcpCredentials)

func GetTestProject

func GetTestProject(tb testing.TB) string

func ParseBindings

func ParseBindings(bindingsStr string) (map[string]StringSet, error)

type StringSet

type StringSet map[string]struct{}

A set of strings

func ToSet

func ToSet(values []string) StringSet

func (StringSet) Add

func (ss StringSet) Add(v string)

func (StringSet) Equals

func (ss StringSet) Equals(other StringSet) bool

func (StringSet) Includes

func (ss StringSet) Includes(v string) bool

func (StringSet) Intersection

func (ss StringSet) Intersection(other StringSet) StringSet

func (StringSet) Sub

func (ss StringSet) Sub(other StringSet) StringSet

func (StringSet) ToSlice

func (ss StringSet) ToSlice() []string

func (StringSet) Union

func (ss StringSet) Union(other StringSet) StringSet

func (StringSet) Update

func (ss StringSet) Update(members ...string)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier