Documentation
¶
Overview ¶
Package types contains the Service Manager web entities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
BrokerURL string `json:"broker_url"`
Credentials *Credentials `json:"credentials,omitempty" structs:"-"`
Catalog json.RawMessage `json:"catalog,omitempty"`
}
Broker broker struct
func (*Broker) MarshalJSON ¶
MarshalJSON override json serialization for http response
type Credentials ¶
type Credentials struct {
Basic *Basic `json:"basic"`
}
Credentials credentials
func GenerateCredentials ¶
func GenerateCredentials() (*Credentials, error)
GenerateCredentials return user and password
func NewBasicCredentials ¶
func NewBasicCredentials(username string, password string) *Credentials
NewBasicCredentials returns new basic credentials object
func (*Credentials) Validate ¶
func (c *Credentials) Validate() error
Validate implements InputValidator and verifies all mandatory fields are populated
type Platform ¶
type Platform struct {
ID string `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Credentials *Credentials `json:"credentials,omitempty"`
}
Platform platform struct
func (*Platform) MarshalJSON ¶
MarshalJSON override json serialization for http response
Click to show internal directories.
Click to hide internal directories.