service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

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 RevisionPodWatcher added in v0.0.10

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

func NewRevisionPodWatcher added in v0.0.10

func NewRevisionPodWatcher(
	revision *v1alpha1.Revision,
	servingClient servingclientset.Interface,
	coreClient kubernetes.Interface,
	ui ui.UI,
) RevisionPodWatcher

func (RevisionPodWatcher) Watch added in v0.0.10

func (w RevisionPodWatcher) 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(
	serviceSpec ServiceSpec,
	servingClient servingclientset.Interface,
	buildClient buildclientset.Interface,
	coreClient kubernetes.Interface,
	buildObjFactory ctlbuild.Factory,
) *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 ServicePodWatcher added in v0.0.10

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

func NewServicePodWatcher added in v0.0.10

func NewServicePodWatcher(
	service *v1alpha1.Service,
	servingClient servingclientset.Interface,
	coreClient kubernetes.Interface,
	ui ui.UI,
) ServicePodWatcher

func (ServicePodWatcher) Watch added in v0.0.10

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

type ServiceSpec added in v0.1.0

type ServiceSpec interface {
	Namespace() string
	Name() string
	Service() (v1alpha1.Service, error)
	NeedsConfigurationUpdate() bool
	Configuration() (v1alpha1.Configuration, 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