Documentation
¶
Index ¶
- func OneSelectQuery(namespaceID, name string) interface{}
- type ServiceList
- type ServiceResource
- func (serv ServiceResource) AllSelectOwnerQuery() interface{}
- func (serv ServiceResource) AllSelectQuery() interface{}
- func (serv ServiceResource) Copy() ServiceResource
- func (serv ServiceResource) OneSelectDeletedQuery() interface{}
- func (serv ServiceResource) OneSelectQuery() interface{}
- func (serv ServiceResource) UpdateQuery() interface{}
- type ServiceType
- type ServicesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OneSelectQuery ¶
func OneSelectQuery(namespaceID, name string) interface{}
Types ¶
type ServiceList ¶
type ServiceList []ServiceResource
ServiceList -- services list
swagger:model
func (ServiceList) Copy ¶
func (list ServiceList) Copy() ServiceList
func (ServiceList) Domains ¶
func (list ServiceList) Domains() []string
func (ServiceList) Filter ¶
func (list ServiceList) Filter(pred func(ServiceResource) bool) ServiceList
func (ServiceList) Len ¶
func (list ServiceList) Len() int
func (ServiceList) Names ¶
func (list ServiceList) Names() []string
type ServiceResource ¶
type ServiceResource struct {
model.Service
ID string `json:"_id" bson:"_id,omitempty"`
Deleted bool `json:"deleted"`
NamespaceID string `json:"namespaceid"`
Type ServiceType `json:"type" bson:"type"`
}
ServiceResource -- model for service for resource-service db
swagger:model
func ServiceFromKube ¶
func ServiceFromKube(nsID, owner string, stype ServiceType, service model.Service) ServiceResource
func (ServiceResource) AllSelectOwnerQuery ¶
func (serv ServiceResource) AllSelectOwnerQuery() interface{}
func (ServiceResource) AllSelectQuery ¶
func (serv ServiceResource) AllSelectQuery() interface{}
func (ServiceResource) Copy ¶
func (serv ServiceResource) Copy() ServiceResource
func (ServiceResource) OneSelectDeletedQuery ¶
func (serv ServiceResource) OneSelectDeletedQuery() interface{}
func (ServiceResource) OneSelectQuery ¶
func (serv ServiceResource) OneSelectQuery() interface{}
func (ServiceResource) UpdateQuery ¶
func (serv ServiceResource) UpdateQuery() interface{}
type ServiceType ¶
type ServiceType string
const ( ServiceInternal ServiceType = "internal" ServiceExternal ServiceType = "external" )
type ServicesResponse ¶ added in v1.0.3
type ServicesResponse struct {
Services ServiceList `json:"services"`
}
ServicesResponse -- ingresses response
swagger:model
Click to show internal directories.
Click to hide internal directories.