Documentation ¶
Index ¶
- func GetConfigFromContext(ctx context.Context) any
- func Init(grpcContext context.Context, connParams *GrpcConnectionParams, ...)
- func WithGRPCConfig(parentContext context.Context, cfg any) context.Context
- type DeleteFunc
- type DeployFunc
- type GrpcConnection
- type GrpcConnectionParams
- type SecretListFunc
- type WatchFunc
- type WorkerFunctions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFromContext ¶
func Init ¶
func Init(grpcContext context.Context, connParams *GrpcConnectionParams, appConfig *config.CommonConfiguration, workerFuncs WorkerFunctions)
Types ¶
type DeployFunc ¶
type DeployFunc func(context.Context, *dogger.DeploymentLogger, *v1.DeployImageRequest, *v1.VersionData) error
type GrpcConnection ¶
type GrpcConnection struct { Conn *grpc.ClientConn Client agent.AgentClient }
func (*GrpcConnection) SetClient ¶
func (g *GrpcConnection) SetClient(client agent.AgentClient)
func (*GrpcConnection) SetConn ¶
func (g *GrpcConnection) SetConn(conn *grpc.ClientConn)
type GrpcConnectionParams ¶
type GrpcConnectionParams struct {
// contains filtered or unexported fields
}
func GrpcTokenToConnectionParams ¶
func GrpcTokenToConnectionParams(grpcToken string, insecureGrpc bool) (*GrpcConnectionParams, error)
type WorkerFunctions ¶
type WorkerFunctions struct { Deploy DeployFunc Watch WatchFunc Delete DeleteFunc SecretList SecretListFunc }
Click to show internal directories.
Click to hide internal directories.