Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// env
Env []*EnvVar `json:"env"`
// image
// Required: true
Image *string `json:"image"`
}
func (*Container) MarshalBinary ¶
MarshalBinary interface implementation
func (*Container) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EnvVar ¶
type EnvVar struct {
// name
// Required: true
Name *string `json:"name"`
// value
// Required: true
Value *string `json:"value"`
}
func (*EnvVar) MarshalBinary ¶
MarshalBinary interface implementation
func (*EnvVar) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int64 `json:"code,omitempty"`
// message
// Required: true
Message *string `json:"message"`
}
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServeSpecification ¶
type ServeSpecification struct {
// name
// Required: true
Name *string `json:"name"`
// public
Public bool `json:"public,omitempty"`
}
func (*ServeSpecification) MarshalBinary ¶
func (m *ServeSpecification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServeSpecification) UnmarshalBinary ¶
func (m *ServeSpecification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Service ¶
type Service struct {
// guid
// Required: true
GUID *int64 `json:"guid"`
// name
// Required: true
// Min Length: 1
Name *string `json:"name"`
// serve
Serve *ServeSpecification `json:"serve,omitempty"`
// services
Services []*ServiceSpecification `json:"services"`
}
func (*Service) MarshalBinary ¶
MarshalBinary interface implementation
func (*Service) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServicePort ¶
type ServicePort struct {
// number
// Required: true
Number *int32 `json:"number"`
// protocol
Protocol string `json:"protocol,omitempty"`
}
func (*ServicePort) MarshalBinary ¶
func (m *ServicePort) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServicePort) UnmarshalBinary ¶
func (m *ServicePort) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServiceSpecification ¶
type ServiceSpecification struct {
// containers
Containers []*Container `json:"containers"`
// depends
Depends string `json:"depends,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// ports
Ports []*ServicePort `json:"ports"`
// reference
Reference string `json:"reference,omitempty"`
// replicas
Replicas int32 `json:"replicas,omitempty"`
// shard spec
ShardSpec *ShardSpecification `json:"shardSpec,omitempty"`
}
func (*ServiceSpecification) MarshalBinary ¶
func (m *ServiceSpecification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceSpecification) UnmarshalBinary ¶
func (m *ServiceSpecification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ShardSpecification ¶
type ShardSpecification struct {
// field path
FieldPath string `json:"fieldPath,omitempty"`
// shards
Shards int32 `json:"shards,omitempty"`
// url pattern
URLPattern string `json:"urlPattern,omitempty"`
}
func (*ShardSpecification) MarshalBinary ¶
func (m *ShardSpecification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ShardSpecification) UnmarshalBinary ¶
func (m *ShardSpecification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation