determined

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignRole

func AssignRole(ctx context.Context, dc det.DeterminedClient, userId int32, roleId int32, workspaces []*workspacev1.Workspace) error

func CreateWorkspace

func CreateWorkspace(ctx context.Context, dc det.DeterminedClient, workspace string) (*workspacev1.Workspace, error)

func GetRole

func GetRole(ctx context.Context, dc det.DeterminedClient, name string) (*rbacv1.Role, error)

func GetUsers

func GetUsers(ctx context.Context, dc det.DeterminedClient) ([]*userv1.User, error)

func GetWorkspaces

func GetWorkspaces(ctx context.Context, dc det.DeterminedClient, workspaces []string) ([]*workspacev1.Workspace, error)

func MintToken

func MintToken(ctx context.Context, dc det.DeterminedClient, username, password string) (string, error)

func NewClient

func NewClient(ctx context.Context, masterURL string, withTLS bool) (client det.DeterminedClient, close func() error, retErr error)

func WithToken

func WithToken(ctx context.Context, token string) context.Context

Types

type Config

type Config struct {
	MasterURL string
	Username  string
	Password  string
	TLS       bool
}

Jump to

Keyboard shortcuts

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