grpc

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIServiceServer

func NewAPIServiceServer(
	svc *apiserver.Service,
	avatarBaseURL domain.AvatarBaseURL,
) pbconnect.APIServiceHandler

func NewControllerBuilderService

func NewControllerBuilderService(
	logStream *logstream.Service,
) domain.ControllerBuilderService

func NewControllerSSGenService

func NewControllerSSGenService() domain.ControllerSSGenService

Types

type APIService

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

func (*APIService) CancelBuild

func (*APIService) CreateApplication

func (*APIService) CreateRepository

func (*APIService) CreateUserKey

func (*APIService) DeleteApplication

func (*APIService) DeleteRepository

func (*APIService) DeleteUserKey

func (*APIService) GenerateKeyPair added in v0.6.0

func (*APIService) GetApplication

func (*APIService) GetAvailableDomains

func (*APIService) GetAvailablePorts added in v0.3.0

func (*APIService) GetBuild

func (*APIService) GetBuildArtifact

func (*APIService) GetBuildLog

func (*APIService) GetBuildLogStream

func (s *APIService) GetBuildLogStream(ctx context.Context, req *connect.Request[pb.BuildIdRequest], st *connect.ServerStream[pb.BuildLog]) error

func (*APIService) GetMe

func (*APIService) GetOutput

func (*APIService) GetRepository

func (*APIService) GetUserKeys

func (*APIService) GetUsers added in v0.4.6

func (*APIService) RefreshRepository

func (*APIService) RetryCommitBuild

func (*APIService) StartApplication

func (*APIService) StopApplication

func (*APIService) UpdateApplication

func (*APIService) UpdateRepository

type AuthHeader

type AuthHeader string

type AuthInterceptor

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

func NewAuthInterceptor

func NewAuthInterceptor(
	userRepo domain.UserRepository,
	header AuthHeader,
) *AuthInterceptor

func (*AuthInterceptor) WrapStreamingClient

func (*AuthInterceptor) WrapStreamingHandler

func (*AuthInterceptor) WrapUnary

func (a *AuthInterceptor) WrapUnary(unaryFunc connect.UnaryFunc) connect.UnaryFunc

type ControllerBuilderService

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

func (*ControllerBuilderService) BroadcastBuilder

func (s *ControllerBuilderService) BroadcastBuilder(req *pb.BuilderRequest)

func (*ControllerBuilderService) ConnectBuilder

func (*ControllerBuilderService) ListenBuildSettled

func (s *ControllerBuilderService) ListenBuildSettled() (sub <-chan struct{}, unsub func())

func (*ControllerBuilderService) ListenBuilderIdle

func (s *ControllerBuilderService) ListenBuilderIdle() (sub <-chan struct{}, unsub func())

func (*ControllerBuilderService) StartBuilds added in v0.4.10

func (s *ControllerBuilderService) StartBuilds(buildIDs []string)

type ControllerBuilderServiceClient

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

func (*ControllerBuilderServiceClient) ConnectBuilder

func (c *ControllerBuilderServiceClient) ConnectBuilder(ctx context.Context, onRequest func(req *pb.BuilderRequest), response <-chan *pb.BuilderResponse) error

type ControllerSSGenService

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

func (*ControllerSSGenService) BroadcastSSGen

func (s *ControllerSSGenService) BroadcastSSGen(req *pb.SSGenRequest)

func (*ControllerSSGenService) ConnectSSGen

type ControllerSSGenServiceClient

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

func (*ControllerSSGenServiceClient) ConnectSSGen

func (c *ControllerSSGenServiceClient) ConnectSSGen(ctx context.Context, onRequest func(req *pb.SSGenRequest)) error

type ControllerService

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

func (*ControllerService) CancelBuild

func (*ControllerService) FetchRepository

func (*ControllerService) GetAvailableDomains added in v0.4.0

func (*ControllerService) GetAvailablePorts added in v0.4.0

func (*ControllerService) RegisterBuilds

func (*ControllerService) StreamBuildLog

func (*ControllerService) SyncDeployments

type ControllerServiceClient

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

func (*ControllerServiceClient) CancelBuild

func (c *ControllerServiceClient) CancelBuild(ctx context.Context, buildID string) error

func (*ControllerServiceClient) FetchRepository

func (c *ControllerServiceClient) FetchRepository(ctx context.Context, repositoryID string) error

func (*ControllerServiceClient) GetAvailableDomains added in v0.4.0

func (*ControllerServiceClient) GetAvailablePorts added in v0.4.0

func (*ControllerServiceClient) RegisterBuilds

func (c *ControllerServiceClient) RegisterBuilds(ctx context.Context) error

func (*ControllerServiceClient) StreamBuildLog

func (c *ControllerServiceClient) StreamBuildLog(ctx context.Context, buildID string) (<-chan *pb.BuildLog, error)

func (*ControllerServiceClient) SyncDeployments

func (c *ControllerServiceClient) SyncDeployments(ctx context.Context) error

type ControllerServiceClientConfig

type ControllerServiceClientConfig struct {
	URL string `mapstructure:"url" yaml:"url"`
}

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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