roles

package
v2.12.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 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 Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client, baseURL string, personalAccessToken string) *Client

func (*Client) DeleteRole

func (c *Client) DeleteRole(ctx context.Context, roleID string) error

DeleteRole deletes a role assigned to the current user.

func (*Client) ListRuntimeGroupsRoles

func (c *Client) ListRuntimeGroupsRoles(ctx context.Context) ([]Role, error)

ListRuntimeGroupsRoles lists all roles assigned to the current user for Runtime Groups.

type Role

type Role struct {
	// ID is the role ID.
	ID string

	// EntityID is the ID of the entity the role is assigned to (e.g. Runtime Group).
	EntityID string
}

func NewRole

func NewRole(id, entityID string) (Role, error)

Jump to

Keyboard shortcuts

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