service

package
v0.0.0-...-9b56418 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Overview

Package service defines an interface used to provide access to objects in the service layer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterService

type ClusterService interface {
	InitializeClusterWatcher() (func() error, error)
	CreateOrSaveClusterFromConfig(ctx context.Context) error
	CreateOrSaveCluster(ctx context.Context, clustr *repository.Cluster) error
	Load(ctx context.Context, clusterID uuid.UUID) (*repository.Cluster, error)
	LoadForAuth(ctx context.Context, clusterID uuid.UUID) (*repository.Cluster, error)
	FindByURL(ctx context.Context, clusterURL string) (*repository.Cluster, error)
	FindByURLForAuth(ctx context.Context, clusterURL string) (*repository.Cluster, error)
	List(ctx context.Context, clusterType *string) ([]repository.Cluster, error)
	ListForAuth(ctx context.Context, clusterType *string) ([]repository.Cluster, error)
	Delete(ctx context.Context, clusterID uuid.UUID) error
	LinkIdentityToCluster(ctx context.Context, identityID uuid.UUID, clusterURL string, ignoreError bool) error
	RemoveIdentityToClusterLink(ctx context.Context, identityID uuid.UUID, clusterURL string) error
}

ClusterService the interface for the cluster service

type Services

type Services interface {
	ClusterService() ClusterService
}

Services creates instances of service layer objects

Directories

Path Synopsis
Package base contains the base service struct which service implementations should extend
Package base contains the base service struct which service implementations should extend

Jump to

Keyboard shortcuts

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