service

package
v1.0.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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"
)

Jump to

Keyboard shortcuts

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