integrationv1

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSOIDCService

type AWSOIDCService struct {
	integrationpb.UnimplementedAWSOIDCServiceServer
	// contains filtered or unexported fields
}

AWSOIDCService implements the teleport.integration.v1.AWSOIDCService RPC service.

func NewAWSOIDCService

func NewAWSOIDCService(cfg *AWSOIDCServiceConfig) (*AWSOIDCService, error)

NewAWSOIDCService returns a new AWSOIDCService.

func (*AWSOIDCService) ListDatabases

ListIntegrations returns a paginated list of Databases.

type AWSOIDCServiceConfig

type AWSOIDCServiceConfig struct {
	IntegrationService *Service
	Authorizer         authz.Authorizer
	Logger             *logrus.Entry
}

AWSOIDCServiceConfig holds configuration options for the AWSOIDC Integration gRPC service.

func (*AWSOIDCServiceConfig) CheckAndSetDefaults

func (s *AWSOIDCServiceConfig) CheckAndSetDefaults() error

CheckAndSetDefaults checks the AWSOIDCServiceConfig fields and returns an error if a required param is not provided. Authorizer and IntegrationService are required params.

type Cache

type Cache interface {
	// GetClusterName returns local cluster name of the current auth server
	GetClusterName(...services.MarshalOption) (types.ClusterName, error)

	// GetCertAuthority returns certificate authority by given id. Parameter loadSigningKeys
	// controls if signing keys are loaded
	GetCertAuthority(ctx context.Context, id types.CertAuthID, loadSigningKeys bool) (types.CertAuthority, error)

	// GetProxies returns a list of registered proxies.
	GetProxies() ([]types.Server, error)

	// IntegrationsGetter defines methods to access Integration resources.
	services.IntegrationsGetter
}

Cache is the subset of the cached resources that the Service queries.

type KeyStoreManager

type KeyStoreManager interface {
	// GetJWTSigner selects a usable JWT keypair from the given keySet and returns a [crypto.Signer].
	GetJWTSigner(ctx context.Context, ca types.CertAuthority) (crypto.Signer, error)
}

KeyStoreManager defines methods to get signers using the server's keystore.

type Service

type Service struct {
	integrationpb.UnimplementedIntegrationServiceServer
	// contains filtered or unexported fields
}

Service implements the teleport.integration.v1.IntegrationService RPC service.

func NewService

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

NewService returns a new Integrations gRPC service.

func (*Service) CreateIntegration

CreateIntegration creates a new Okta import rule resource.

func (*Service) DeleteAllIntegrations

func (s *Service) DeleteAllIntegrations(ctx context.Context, _ *integrationpb.DeleteAllIntegrationsRequest) (*emptypb.Empty, error)

DeleteAllIntegrations removes all Integration resources.

func (*Service) DeleteIntegration

func (s *Service) DeleteIntegration(ctx context.Context, req *integrationpb.DeleteIntegrationRequest) (*emptypb.Empty, error)

DeleteIntegration removes the specified Integration resource.

func (*Service) GenerateAWSOIDCToken

GenerateAWSOIDCToken generates a token to be used when executing an AWS OIDC Integration action.

func (*Service) GetIntegration

GetIntegration returns the specified Integration resource.

func (*Service) ListIntegrations

ListIntegrations returns a paginated list of all Integration resources.

func (*Service) UpdateIntegration

UpdateIntegration updates an existing Okta import rule resource.

type ServiceConfig

type ServiceConfig struct {
	Authorizer      authz.Authorizer
	Backend         services.Integrations
	Cache           Cache
	KeyStoreManager KeyStoreManager
	Logger          *logrus.Entry
	Clock           clockwork.Clock
}

ServiceConfig holds configuration options for the Integration 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