organization

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package organization contains types and functions for managing organization data for the user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient interface {
	Do(ctx context.Context, method, uri string, body, out interface{}) error
}

The HTTPClient interface describes types that perform HTTP requests.

type Organization

type Organization struct {
	ID    string   `json:"id"`
	Roles []string `json:"roles"`
}

The Organization type describes a single organization and the roles within it for the current user.

func List

func List(ctx context.Context, client HTTPClient) ([]Organization, error)

List all organizations the user has access to and their role within it. Organizations and their roles are sorted by name.

Jump to

Keyboard shortcuts

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