grpc

package
v1.10.39 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 40 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewBuildpackHelperService added in v1.1.0

func NewBuildpackHelperService() pbconnect.BuildpackHelperServiceHandler

func NewBuildpackHelperServiceClient added in v1.1.0

func NewBuildpackHelperServiceClient(
	address string,
) domain.BuildpackHelperServiceClient

func NewControllerSSGenService

func NewControllerSSGenService() domain.ControllerSSGenService

func NewGiteaIntegrationService added in v1.10.0

func NewGiteaIntegrationService(integration *giteaintegration.Integration) domain.GiteaIntegrationService

func NewGiteaIntegrationServiceClient added in v1.10.0

func NewGiteaIntegrationServiceClient(
	url GiteaIntegrationServiceURL,
) domain.GiteaIntegrationServiceClient

func NewGiteaIntegrationServiceClientNop added in v1.10.0

func NewGiteaIntegrationServiceClientNop() domain.GiteaIntegrationServiceClient

Types

type APIService

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

func (*APIService) CancelBuild

func (s *APIService) CancelBuild(ctx context.Context, req *pb.BuildIdRequest) (*emptypb.Empty, error)

func (*APIService) CreateApplication

func (s *APIService) CreateApplication(ctx context.Context, req *pb.CreateApplicationRequest) (*pb.Application, error)

func (*APIService) CreateRepository

func (s *APIService) CreateRepository(ctx context.Context, req *pb.CreateRepositoryRequest) (*pb.Repository, error)

func (*APIService) CreateUserKey

func (s *APIService) CreateUserKey(ctx context.Context, req *pb.CreateUserKeyRequest) (*pb.UserKey, error)

func (*APIService) DeleteApplication

func (s *APIService) DeleteApplication(ctx context.Context, req *pb.ApplicationIdRequest) (*emptypb.Empty, error)

func (*APIService) DeleteEnvVar added in v0.7.3

func (*APIService) DeleteRepository

func (s *APIService) DeleteRepository(ctx context.Context, req *pb.RepositoryIdRequest) (*emptypb.Empty, error)

func (*APIService) DeleteUserKey

func (s *APIService) DeleteUserKey(ctx context.Context, req *pb.DeleteUserKeyRequest) (*emptypb.Empty, error)

func (*APIService) GenerateKeyPair added in v0.6.0

func (s *APIService) GenerateKeyPair(ctx context.Context, _ *emptypb.Empty) (*pb.GenerateKeyPairResponse, error)

func (*APIService) GetAllBuilds added in v0.13.0

func (s *APIService) GetAllBuilds(ctx context.Context, req *pb.GetAllBuildsRequest) (*pb.GetBuildsResponse, error)

func (*APIService) GetApplication

func (s *APIService) GetApplication(ctx context.Context, req *pb.ApplicationIdRequest) (*pb.Application, error)

func (*APIService) GetApplicationMetrics added in v0.15.0

func (s *APIService) GetApplicationMetrics(ctx context.Context, req *pb.GetApplicationMetricsRequest) (*pb.ApplicationMetrics, error)

func (*APIService) GetApplications

func (*APIService) GetAvailableMetrics added in v0.15.0

func (s *APIService) GetAvailableMetrics(ctx context.Context, _ *emptypb.Empty) (*pb.AvailableMetrics, error)

func (*APIService) GetBuild

func (s *APIService) GetBuild(ctx context.Context, req *pb.BuildIdRequest) (*pb.Build, error)

func (*APIService) GetBuildArtifact

func (s *APIService) GetBuildArtifact(ctx context.Context, req *pb.ArtifactIdRequest) (*pb.ArtifactContent, error)

func (*APIService) GetBuildLog

func (s *APIService) GetBuildLog(ctx context.Context, req *pb.BuildIdRequest) (*pb.BuildLog, error)

func (*APIService) GetBuilds

func (*APIService) GetEnvVars

func (*APIService) GetMe

func (s *APIService) GetMe(ctx context.Context, _ *emptypb.Empty) (*pb.User, error)

func (*APIService) GetOutput

func (*APIService) GetRepositories

func (*APIService) GetRepository

func (s *APIService) GetRepository(ctx context.Context, req *pb.RepositoryIdRequest) (*pb.Repository, error)

func (*APIService) GetRepositoryCommits added in v1.3.0

func (*APIService) GetRepositoryRefs added in v0.13.0

func (s *APIService) GetRepositoryRefs(ctx context.Context, req *pb.RepositoryIdRequest) (*pb.GetRepositoryRefsResponse, error)

func (*APIService) GetSystemInfo added in v0.10.1

func (s *APIService) GetSystemInfo(ctx context.Context, _ *emptypb.Empty) (*pb.SystemInfo, error)

func (*APIService) GetUserKeys

func (s *APIService) GetUserKeys(ctx context.Context, _ *emptypb.Empty) (*pb.GetUserKeysResponse, error)

func (*APIService) GetUsers added in v0.4.6

func (s *APIService) GetUsers(ctx context.Context, _ *emptypb.Empty) (*pb.GetUsersResponse, error)

func (*APIService) RefreshRepository

func (s *APIService) RefreshRepository(ctx context.Context, req *pb.RepositoryIdRequest) (*emptypb.Empty, error)

func (*APIService) RetryCommitBuild

func (s *APIService) RetryCommitBuild(ctx context.Context, req *pb.RetryCommitBuildRequest) (*emptypb.Empty, error)

func (*APIService) SetEnvVar

func (*APIService) StartApplication

func (s *APIService) StartApplication(ctx context.Context, req *pb.ApplicationIdRequest) (*emptypb.Empty, error)

func (*APIService) StopApplication

func (s *APIService) StopApplication(ctx context.Context, req *pb.ApplicationIdRequest) (*emptypb.Empty, error)

func (*APIService) UpdateApplication

func (s *APIService) UpdateApplication(ctx context.Context, req *pb.UpdateApplicationRequest) (*emptypb.Empty, error)

func (*APIService) UpdateRepository

func (s *APIService) UpdateRepository(ctx context.Context, req *pb.UpdateRepositoryRequest) (*emptypb.Empty, error)

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) Server added in v1.10.34

Server returns the interceptor that resolves the user from the auth header.

type BuildpackHelperService added in v1.1.0

type BuildpackHelperService struct{}

func (*BuildpackHelperService) CopyFileTree added in v1.1.0

func (*BuildpackHelperService) Exec added in v1.1.0

type BuildpackHelperServiceClient added in v1.1.0

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

func (*BuildpackHelperServiceClient) CopyFileTree added in v1.1.0

func (b *BuildpackHelperServiceClient) CopyFileTree(ctx context.Context, destination string, tarStream io.Reader) error

func (*BuildpackHelperServiceClient) Exec added in v1.1.0

func (b *BuildpackHelperServiceClient) Exec(ctx context.Context, workDir string, cmd []string, envs map[string]string, logWriter io.Writer) (int, error)

type CacheInterceptor added in v1.0.1

type CacheInterceptor struct{}

func NewCacheInterceptor added in v1.0.1

func NewCacheInterceptor() *CacheInterceptor

func (*CacheInterceptor) Server added in v1.10.34

Server returns the interceptor that sets ETag on unary GET responses and answers 304 Not Modified when it matches If-None-Match.

type ControllerBuilderService

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

func (*ControllerBuilderService) CancelBuild added in v0.20.0

func (s *ControllerBuilderService) CancelBuild(buildID string)

func (*ControllerBuilderService) GetBuilderSystemInfo added in v1.1.0

func (s *ControllerBuilderService) GetBuilderSystemInfo(_ context.Context, _ *emptypb.Empty) (*pb.BuilderSystemInfo, error)

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) PingBuild added in v1.1.0

func (*ControllerBuilderService) SaveArtifact added in v1.1.0

func (*ControllerBuilderService) SaveBuildLog added in v1.1.0

func (*ControllerBuilderService) SaveRuntimeImage added in v1.5.0

func (*ControllerBuilderService) StartBuilds added in v0.4.10

func (s *ControllerBuilderService) StartBuilds(ctx context.Context, buildIDs []string)

func (*ControllerBuilderService) StreamBuildLog added in v1.1.0

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

func (*ControllerBuilderServiceClient) GetBuilderSystemInfo added in v1.1.0

func (*ControllerBuilderServiceClient) PingBuild added in v1.1.0

func (c *ControllerBuilderServiceClient) PingBuild(ctx context.Context, buildID string) error

func (*ControllerBuilderServiceClient) SaveArtifact added in v1.1.0

func (c *ControllerBuilderServiceClient) SaveArtifact(ctx context.Context, artifact *domain.Artifact, body []byte) error

func (*ControllerBuilderServiceClient) SaveBuildLog added in v1.1.0

func (c *ControllerBuilderServiceClient) SaveBuildLog(ctx context.Context, buildID string, body []byte) error

func (*ControllerBuilderServiceClient) SaveRuntimeImage added in v1.5.0

func (c *ControllerBuilderServiceClient) SaveRuntimeImage(ctx context.Context, buildID string, size int64) error

func (*ControllerBuilderServiceClient) StreamBuildLog added in v1.1.0

func (c *ControllerBuilderServiceClient) StreamBuildLog(ctx context.Context, buildID string, send <-chan []byte) error

type ControllerPort added in v1.9.0

type ControllerPort int

type ControllerSSGenService

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

func (*ControllerSSGenService) BroadcastSSGen

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

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 {
	Port int
	// contains filtered or unexported fields
}

func (*ControllerService) CancelBuild

func (s *ControllerService) CancelBuild(ctx context.Context, req *pb.BuildIdRequest) (*emptypb.Empty, error)

func (*ControllerService) CancelBuildLocal added in v1.9.0

func (s *ControllerService) CancelBuildLocal(_ context.Context, req *pb.BuildIdRequest) (*emptypb.Empty, error)

func (*ControllerService) DiscoverBuildLogInstance added in v1.9.0

func (s *ControllerService) DiscoverBuildLogInstance(ctx context.Context, req *pb.BuildIdRequest) (*pb.AddressInfo, error)

func (*ControllerService) DiscoverBuildLogLocal added in v1.9.0

func (s *ControllerService) DiscoverBuildLogLocal(_ context.Context, req *pb.BuildIdRequest) (*pb.AddressInfo, error)

func (*ControllerService) FetchRepository

func (s *ControllerService) FetchRepository(_ context.Context, req *pb.RepositoryIdRequest) (*emptypb.Empty, error)

func (*ControllerService) GetSystemInfo added in v0.10.1

func (s *ControllerService) GetSystemInfo(_ context.Context, _ *emptypb.Empty) (*pb.SystemInfo, error)

func (*ControllerService) RegisterBuild added in v0.9.0

func (*ControllerService) StartBuild added in v1.9.0

func (s *ControllerService) StartBuild(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*ControllerService) StartBuildLocal added in v1.9.0

func (s *ControllerService) StartBuildLocal(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*ControllerService) SyncDeployments

func (s *ControllerService) SyncDeployments(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*ControllerService) SyncDeploymentsLocal added in v1.9.0

func (s *ControllerService) SyncDeploymentsLocal(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

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) CancelBuildLocal added in v1.9.0

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

func (*ControllerServiceClient) DiscoverBuildLogInstance added in v1.9.0

func (c *ControllerServiceClient) DiscoverBuildLogInstance(ctx context.Context, buildID string) (*pb.AddressInfo, error)

func (*ControllerServiceClient) DiscoverBuildLogLocal added in v1.9.0

func (c *ControllerServiceClient) DiscoverBuildLogLocal(ctx context.Context, buildID string) (*pb.AddressInfo, error)

func (*ControllerServiceClient) FetchRepository

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

func (*ControllerServiceClient) GetSystemInfo added in v0.10.1

func (c *ControllerServiceClient) GetSystemInfo(ctx context.Context) (*domain.SystemInfo, error)

func (*ControllerServiceClient) RegisterBuild added in v0.9.0

func (c *ControllerServiceClient) RegisterBuild(ctx context.Context, appID string) error

func (*ControllerServiceClient) StartBuild added in v1.9.0

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

func (*ControllerServiceClient) StartBuildLocal added in v1.9.0

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

func (*ControllerServiceClient) StreamBuildLog

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

func (*ControllerServiceClient) SyncDeployments

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

func (*ControllerServiceClient) SyncDeploymentsLocal added in v1.9.0

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

type ControllerServiceClientConfig

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

type GiteaIntegrationService added in v1.10.0

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

func (*GiteaIntegrationService) Sync added in v1.10.0

type GiteaIntegrationServiceClient added in v1.10.0

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

func (*GiteaIntegrationServiceClient) Sync added in v1.10.0

type GiteaIntegrationServiceClientNop added in v1.10.0

type GiteaIntegrationServiceClientNop struct{}

func (*GiteaIntegrationServiceClientNop) Sync added in v1.10.0

type GiteaIntegrationServiceURL added in v1.10.0

type GiteaIntegrationServiceURL string

type LogInterceptor added in v1.10.2

type LogInterceptor struct {
}

func NewLogInterceptor added in v1.10.2

func NewLogInterceptor() *LogInterceptor

func (*LogInterceptor) Server added in v1.10.34

Server returns the interceptor that logs each request at the boundary.

type TokenAuthInterceptor added in v1.1.0

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

func NewTokenAuthInterceptor added in v1.1.0

func NewTokenAuthInterceptor(
	header string,
	token string,
) (*TokenAuthInterceptor, error)

func (*TokenAuthInterceptor) Client added in v1.10.34

Client returns the interceptor that attaches the token to outgoing requests.

func (*TokenAuthInterceptor) Server added in v1.10.34

Server returns the interceptor that rejects requests without the token.

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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