deployment

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	FindBySelectors(ctx context.Context, selectors map[string]string) (*kapps.DeploymentList, error)
	Scale(ctx context.Context, deployment *kapps.Deployment, replicas int32) error
}

type Repository

type Repository struct {
	Client client.Client
}

func (*Repository) FindBySelectors

func (r *Repository) FindBySelectors(ctx context.Context, selectors map[string]string) (*kapps.DeploymentList, error)

FindBySelectors returns a list of deployments matched to the selectors.

func (*Repository) Scale

func (r *Repository) Scale(ctx context.Context, deployment *kapps.Deployment, replicas int32) error

Scale updates the replicas of the deployment to the given value using the patch method.

Directories

Path Synopsis
Package mock_deployment is a generated GoMock package.
Package mock_deployment is a generated GoMock package.

Jump to

Keyboard shortcuts

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