iam

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IamTypeStrings

func IamTypeStrings() []string

IamTypeStrings returns a slice of all String values of the enum

Types

type DataObjectReference

type DataObjectReference struct {
	FullName   string
	ObjectType string
}

type GroupEntity

type GroupEntity struct {
	ExternalId string
	Email      string
	Members    []string
}

type IAMPolicyContainer

type IAMPolicyContainer struct {
	V1      *crmV1.Policy
	V2      *crmV2.Policy
	Service []IamBinding // Service IAM repo should immediately fill bindings as []IamBinding
}

type IamBinding

type IamBinding struct {
	Member       string
	Role         string
	Resource     string
	ResourceType string
}

func (IamBinding) Equals

func (a IamBinding) Equals(b IamBinding) bool

type IamType

type IamType int
const (
	Project IamType = iota
	Folder
	Organization
	GSuite
	Service
)

func IamTypeString

func IamTypeString(s string) (IamType, error)

IamTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func IamTypeValues

func IamTypeValues() []IamType

IamTypeValues returns all values of the enum

func (IamType) IsAIamType

func (i IamType) IsAIamType() bool

IsAIamType returns "true" if the value is listed in the enum definition. "false" otherwise

func (IamType) MarshalGQL

func (i IamType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for IamType

func (IamType) String

func (i IamType) String() string

func (*IamType) UnmarshalGQL

func (i *IamType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for IamType

type UserEntity

type UserEntity struct {
	ExternalId string
	Name       string
	Email      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL