user

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RegionNameApMum1 = shared.RegionNameApMum1

This is an alias to an internal value.

View Source
const RegionNameApSeo1 = shared.RegionNameApSeo1

This is an alias to an internal value.

View Source
const RegionNameApSin1 = shared.RegionNameApSin1

This is an alias to an internal value.

View Source
const RegionNameApTyo1 = shared.RegionNameApTyo1

This is an alias to an internal value.

View Source
const RegionNameEuAms1 = shared.RegionNameEuAms1

This is an alias to an internal value.

View Source
const RegionNameEuFrk1 = shared.RegionNameEuFrk1

This is an alias to an internal value.

View Source
const RegionNameEuLon1 = shared.RegionNameEuLon1

This is an alias to an internal value.

View Source
const RegionNameUsChi1 = shared.RegionNameUsChi1

This is an alias to an internal value.

View Source
const RegionNameUsSea1 = shared.RegionNameUsSea1

This is an alias to an internal value.

View Source
const RegionNameUsSva1 = shared.RegionNameUsSva1

This is an alias to an internal value.

View Source
const RegionNameUsWdc1 = shared.RegionNameUsWdc1

This is an alias to an internal value.

View Source
const ResourceStatusCreating = shared.ResourceStatusCreating

This is an alias to an internal value.

View Source
const ResourceStatusDeleted = shared.ResourceStatusDeleted

This is an alias to an internal value.

View Source
const ResourceStatusDeleting = shared.ResourceStatusDeleting

This is an alias to an internal value.

View Source
const ResourceStatusError = shared.ResourceStatusError

This is an alias to an internal value.

View Source
const ResourceStatusPending = shared.ResourceStatusPending

This is an alias to an internal value.

View Source
const ResourceStatusReady = shared.ResourceStatusReady

This is an alias to an internal value.

View Source
const ResourceStatusUpdating = shared.ResourceStatusUpdating

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error = apierror.Error

type RegionName

type RegionName = shared.RegionName

This is an alias to an internal type.

type ResourceStatus

type ResourceStatus = shared.ResourceStatus

This is an alias to an internal type.

type User

type User struct {
	ID       string       `json:"id,required"`
	Email    string       `json:"email,required"`
	Services UserServices `json:"services,required"`
	JSON     userJSON     `json:"-"`
}

func (*User) UnmarshalJSON

func (r *User) UnmarshalJSON(data []byte) (err error)

type UserService

type UserService struct {
	Options []option.RequestOption
}

UserService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserService method instead.

func NewUserService

func NewUserService(opts ...option.RequestOption) (r *UserService)

NewUserService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*UserService) Get

func (r *UserService) Get(ctx context.Context, opts ...option.RequestOption) (res *User, err error)

Get details about an authenticated user

type UserServices

type UserServices struct {
	Cloud bool             `json:"cloud"`
	JSON  userServicesJSON `json:"-"`
}

func (*UserServices) UnmarshalJSON

func (r *UserServices) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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