Help us shape the future of Go! Take the 2026 Go Developer Survey

iamtest

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package iamtest runs the shared google.iam.v1 conformance cases against a service's IAM endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, ep Endpoint)

Run exercises etag, policy-version, condition and permission-filtering semantics.

Types

type Endpoint

type Endpoint struct {
	Get      func(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
	Set      func(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
	Test     func(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
	Resource string
	// Permission is a permission valid for the service; the foreign one is derived by the helper.
	Permission string
}

Endpoint is one resource's IAM surface.

Jump to

Keyboard shortcuts

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