service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DtabAnnotation           = "compass.thisissoon.com/dtab"
	DentryPrefixAnnotation   = "compass.thisissoon.com/dentry-prefix"
	DentryPriorityAnnotation = "compass.thisissoon.com/dentry-priority"
	PortNameAnnotation       = "compass.thisissoon.com/port-name"
)

Variables

View Source
var (
	ErrServiceNotFound                 = errors.New("kubernetets service not found")
	ErrMultipleServicesFound           = errors.New("Too many kubernetets services found")
	ErrMissingDtabAnnotation           = fmt.Errorf("service missing annotation: %s", DtabAnnotation)
	ErrMissingDentryPriorityAnnotation = fmt.Errorf("service missing annotation: %s", DentryPriorityAnnotation)
	ErrMissingPortNameAnnotation       = fmt.Errorf("service missing annotation: %s", PortNameAnnotation)
)

Functions

This section is empty.

Types

type DataMigrationService

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

func NewDataMigrationService

func NewDataMigrationService(m *migrate.Migrate) *DataMigrationService

func (*DataMigrationService) RegisterWithServer

func (dms *DataMigrationService) RegisterWithServer(srv *grpc.Server)

func (*DataMigrationService) Upgrade

func (*DataMigrationService) Version

type DentryService

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

Manager implements the pb.NeedleServiceServer interface and thus handles gRPC requests

func NewDentryService

func NewDentryService(store store.Store, k8s *kubernetes.Clientset) *DentryService

NewDentryService returns a new DentryService

func (*DentryService) DelegationTables

DelegationTables returns a list of delgation tables managed by needle

func (*DentryService) DeleteDentryById

DeleteDentryById deletes a dentry by Id

func (*DentryService) DeleteDentryByPrefix

DeleteDentryByPrefix deletes dentry by prefix

func (*DentryService) Dentries

Dentries returns a list of dentries for a delegation table

func (*DentryService) PutDentry

PutDentry creates or updates a dentry

func (*DentryService) PutService

PutService creates or updates a service

func (*DentryService) RegisterWithServer

func (ds *DentryService) RegisterWithServer(srv *grpc.Server)

func (*DentryService) RouteToVersion

RouteToVersion routes a service to a specified version

type ServiceSelectorDentryPutter

type ServiceSelectorDentryPutter interface {
	store.ServiceSelector
	store.DentryPutter
}

Jump to

Keyboard shortcuts

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