models

package
v0.0.0-...-ded74b0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {

	// balance
	Balance string `json:"balance,omitempty"`

	// the cluster name, should be valid for use in dns names
	// Required: true
	// Max Length: 63
	// Min Length: 3
	// Pattern: ^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$
	ClusterID *string `json:"clusterId"`

	// id
	// Required: true
	ID *int32 `json:"id"`

	// username
	// Required: true
	Username *string `json:"username"`
}

Account the payable account information swagger:model account

func (*Account) MarshalBinary

func (m *Account) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Account) UnmarshalBinary

func (m *Account) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Account) Validate

func (m *Account) Validate(formats strfmt.Registry) error

Validate validates this account

type Cluster

type Cluster struct {

	// the clusterId, should be valid for use in dns names
	// Required: true
	// Max Length: 63
	// Min Length: 3
	// Pattern: ^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$
	ClusterID *string `json:"clusterId"`

	// the number of master created for this kubernetes cluster
	NumMasters int32 `json:"numMasters,omitempty"`

	// the number of workers created for this kubernetes cluster
	NumWorkers int32 `json:"numWorkers,omitempty"`

	// the status of the cluster
	// Required: true
	Status *string `json:"status"`

	// the url to access the kubernetes cluster
	URL strfmt.URI `json:"url,omitempty"`
}

Cluster cluster swagger:model cluster

func (*Cluster) MarshalBinary

func (m *Cluster) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cluster) UnmarshalBinary

func (m *Cluster) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cluster) Validate

func (m *Cluster) Validate(formats strfmt.Registry) error

Validate validates this cluster

type Error

type Error struct {

	// The error code
	Code int64 `json:"code,omitempty"`

	// The error message
	// Required: true
	Message *string `json:"message"`
}

Error the default error model for all the error responses coming from the SuperKomputer

swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Jwttoken

type Jwttoken struct {

	// access token
	AccessToken string `json:"access_token,omitempty"`

	// expires in
	ExpiresIn int64 `json:"expires_in,omitempty"`

	// refresh token
	RefreshToken string `json:"refresh_token,omitempty"`

	// scope
	Scope []string `json:"scope"`

	// token type
	TokenType *string `json:"token_type,omitempty"`

	// jwttoken additional properties
	JwttokenAdditionalProperties map[string]interface{} `json:"-"`
}

Jwttoken a JWT token to carry identity information swagger:model jwttoken

func (*Jwttoken) MarshalBinary

func (m *Jwttoken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Jwttoken) MarshalJSON

func (m Jwttoken) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*Jwttoken) UnmarshalBinary

func (m *Jwttoken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Jwttoken) UnmarshalJSON

func (m *Jwttoken) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*Jwttoken) Validate

func (m *Jwttoken) Validate(formats strfmt.Registry) error

Validate validates this jwttoken

type User

type User struct {

	// the email of user
	Email string `json:"email,omitempty"`

	// the first name of user
	Firstname string `json:"firstname,omitempty"`

	// the id of the user
	ID int32 `json:"id,omitempty"`

	// the last name of user
	Lastname string `json:"lastname,omitempty"`

	// the name of the user
	// Required: true
	Username *string `json:"username"`
}

User An object for user, username is unique swagger:model user

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type UserCredentials

type UserCredentials struct {

	// password
	Password strfmt.Password `json:"password,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserCredentials credentials for logging in to SuperKomputer swagger:model userCredentials

func (*UserCredentials) MarshalBinary

func (m *UserCredentials) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserCredentials) UnmarshalBinary

func (m *UserCredentials) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserCredentials) Validate

func (m *UserCredentials) Validate(formats strfmt.Registry) error

Validate validates this user credentials

Jump to

Keyboard shortcuts

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