service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TagsLatest   = "latest"
	TagsPrevious = "previous"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodWatcher

type PodWatcher struct {
	// contains filtered or unexported fields
}

func NewPodWatcher

func NewPodWatcher(
	podsClient typedcorev1.PodInterface,
	listOpts metav1.ListOptions,
) PodWatcher

func (PodWatcher) Watch

func (w PodWatcher) Watch(podsToWatchCh chan corev1.Pod, cancelCh chan struct{}) error

type RevisionWatcher

type RevisionWatcher struct {
	// contains filtered or unexported fields
}

func NewRevisionWatcher

func NewRevisionWatcher(
	revisionsClient typedv1alpha1.RevisionInterface,
	listOpts metav1.ListOptions,
) RevisionWatcher

func (RevisionWatcher) Watch

func (w RevisionWatcher) Watch(revisionsToWatchCh chan v1alpha1.Revision, cancelCh chan struct{}) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	service v1alpha1.Service,
	servingClient servingclientset.Interface,
	buildClient buildclientset.Interface,
	coreClient kubernetes.Interface,
) Service

func (Service) CreateOrUpdate

func (s Service) CreateOrUpdate() (*v1alpha1.Service, error)

func (Service) CreatedBuildSinceRevision

func (l Service) CreatedBuildSinceRevision(lastRevision *v1alpha1.Revision) (ctlbuild.Build, error)

func (Service) CreatedRevisionSinceRevision

func (l Service) CreatedRevisionSinceRevision(lastRevision *v1alpha1.Revision) (*v1alpha1.Revision, error)

func (Service) LastRevision

func (l Service) LastRevision() (*v1alpha1.Revision, error)

type Tags

type Tags struct {
	// contains filtered or unexported fields
}

func NewTags

func NewTags(servingClient servingclientset.Interface) Tags

func (Tags) Find

func (t Tags) Find(context TagsFindContext, tag string) (*v1alpha1.Revision, error)

TODO instead of context, pass in v1alpha1.Service?

func (Tags) List

func (t Tags) List(revision v1alpha1.Revision) []string

func (Tags) Repoint

func (t Tags) Repoint(revision *v1alpha1.Revision, tag string) error

func (Tags) Tag

func (t Tags) Tag(revision *v1alpha1.Revision, tag string) error

func (Tags) Untag

func (t Tags) Untag(revision v1alpha1.Revision, tag string) error

type TagsFindContext

type TagsFindContext struct {
	Namespace string
	Service   string
}

Jump to

Keyboard shortcuts

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