deployment

package
v1.0.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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 DeploymentList

type DeploymentList []DeploymentResource

Deployment -- deployments list

swagger:model

func (DeploymentList) Copy

func (list DeploymentList) Copy() DeploymentList

func (DeploymentList) Filter

func (list DeploymentList) Filter(pred func(deployment DeploymentResource) bool) DeploymentList

func (DeploymentList) IDs

func (list DeploymentList) IDs() []string

func (DeploymentList) Len

func (list DeploymentList) Len() int

func (DeploymentList) Names

func (list DeploymentList) Names() []string

type DeploymentResource

type DeploymentResource struct {
	model.Deployment
	ID          string `json:"_id,omitempty" bson:"_id,omitempty"`
	Deleted     bool   `json:"deleted"`
	NamespaceID string `json:"namespaceid"`
}

DeploymentResource -- model for deployments for resource-service db

swagger:model

func DeploymentFromKube

func DeploymentFromKube(nsID, owner string, deployment model.Deployment) DeploymentResource

func (DeploymentResource) AllSelectOwnerQuery

func (depl DeploymentResource) AllSelectOwnerQuery() interface{}

func (DeploymentResource) AllSelectQuery

func (depl DeploymentResource) AllSelectQuery() interface{}

func (DeploymentResource) Copy

func (DeploymentResource) OneAnyVersionSelectQuery

func (depl DeploymentResource) OneAnyVersionSelectQuery() interface{}

func (DeploymentResource) OneInactiveSelectQuery

func (depl DeploymentResource) OneInactiveSelectQuery() interface{}

func (DeploymentResource) OneSelectDeletedQuery

func (depl DeploymentResource) OneSelectDeletedQuery() interface{}

func (DeploymentResource) OneSelectQuery

func (depl DeploymentResource) OneSelectQuery() interface{}

func (DeploymentResource) UpdateQuery

func (depl DeploymentResource) UpdateQuery() interface{}

type DeploymentsResponse added in v1.0.3

type DeploymentsResponse struct {
	Deployments DeploymentList `json:"deployments"`
}

DeploymentsResponse -- deployments response

swagger:model

Jump to

Keyboard shortcuts

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