iam

package
v0.131.1-alpha4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConcurrency added in v0.126.0

type CloudConcurrency struct {
	VDC int `json:"vms"`
	RDC int `json:"rds"`
}

CloudConcurrency represents a concurrency per cloud environment.

type Concurrency added in v0.126.0

type Concurrency struct {
	Org OrgConcurrency `json:"organization"`
}

Concurrency represents the concurrency for an account.

type Credentials added in v0.126.0

type Credentials struct {
	Username  string `yaml:"username"`
	AccessKey string `yaml:"accessKey"`
}

Credentials holds the credentials for accessing Sauce Labs.

func (*Credentials) IsSet added in v0.126.0

func (c *Credentials) IsSet() bool

IsSet checks whether the credentials, i.e. username and access key are not empty. Returns false if even one of the credentials is empty.

type Group

type Group struct {
	ID string `json:"id"`
}

Group represents the group that the user belongs to

type OrgConcurrency added in v0.126.0

type OrgConcurrency struct {
	Allowed CloudConcurrency `json:"allowed"`
}

OrgConcurrency represents the concurrency for an organization.

type Organization

type Organization struct {
	ID string `json:"id"`
}

Organization represents the organization that the user belongs to

type User

type User struct {
	ID           string       `json:"id"`
	Groups       []Group      `json:"groups"`
	Organization Organization `json:"organization"`
}

User represents user data structure

type UserService added in v0.124.1

type UserService interface {
	User(context.Context) (User, error)
	// Concurrency returns the concurrency settings for the current account.
	Concurrency(context.Context) (Concurrency, error)
}

Jump to

Keyboard shortcuts

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