grants

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrantedAccess

type GrantedAccess struct {
	Address      string `json:"address"`
	Name         string `json:"name"`
	Applications []struct {
		Name        string   `json:"name"`
		Permissions []string `json:"permissions"`
	} `json:"applications"`
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}
var (
	Client HTTPClient
)

type SubjectResponse

type SubjectResponse struct {
	Address string          `json:"address"`
	Name    string          `json:"name"`
	Grants  []GrantedAccess `json:"grants"`
}

func GetGrants

func GetGrants(grantsURL string, address string, apiKey string) (*SubjectResponse, error)

Jump to

Keyboard shortcuts

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