discoveryconfigv1

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	discoveryconfigv1.UnimplementedDiscoveryConfigServiceServer
	// contains filtered or unexported fields
}

Service implements the teleport.DiscoveryConfig.v1.DiscoveryConfigService RPC service.

func NewService

func NewService(cfg ServiceConfig) (*Service, error)

NewService returns a new DiscoveryConfigs gRPC service.

func (*Service) CreateDiscoveryConfig

CreateDiscoveryConfig creates a new DiscoveryConfig resource.

func (*Service) DeleteAllDiscoveryConfigs

func (s *Service) DeleteAllDiscoveryConfigs(ctx context.Context, _ *discoveryconfigv1.DeleteAllDiscoveryConfigsRequest) (*emptypb.Empty, error)

DeleteAllDiscoveryConfigs removes all DiscoveryConfig resources.

func (*Service) DeleteDiscoveryConfig

func (s *Service) DeleteDiscoveryConfig(ctx context.Context, req *discoveryconfigv1.DeleteDiscoveryConfigRequest) (*emptypb.Empty, error)

DeleteDiscoveryConfig removes the specified DiscoveryConfig resource.

func (*Service) GetDiscoveryConfig

GetDiscoveryConfig returns the specified DiscoveryConfig resource.

func (*Service) ListDiscoveryConfigs

ListDiscoveryConfigs returns a paginated list of all DiscoveryConfig resources.

func (*Service) UpdateDiscoveryConfig

UpdateDiscoveryConfig updates an existing DiscoveryConfig.

func (*Service) UpsertDiscoveryConfig

UpsertDiscoveryConfig creates or updates a DiscoveryConfig.

type ServiceConfig

type ServiceConfig struct {
	// Logger is the logger to use.
	Logger logrus.FieldLogger

	// Authorizer is the authorizer to use.
	Authorizer authz.Authorizer

	// Backend is the backend for storing DiscoveryConfigs.
	Backend services.DiscoveryConfigs

	// Clock is the clock.
	Clock clockwork.Clock
}

ServiceConfig holds configuration options for the DiscoveryConfig gRPC service.

func (*ServiceConfig) CheckAndSetDefaults

func (s *ServiceConfig) CheckAndSetDefaults() error

CheckAndSetDefaults checks the ServiceConfig fields and returns an error if a required param is not provided. Authorizer, Cache and Backend are required params

Jump to

Keyboard shortcuts

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