Documentation
¶
Overview ¶
Package shared contains shared data between the host and plugins.
Index ¶
- Constants
- Variables
- func RegisterContainifyCIEngineServer(s grpc.ServiceRegistrar, srv ContainifyCIEngineServer)
- type BuildArgs
- func (*BuildArgs) Descriptor() ([]byte, []int)deprecated
- func (x *BuildArgs) GetApplication() string
- func (x *BuildArgs) GetBuildType() BuildType
- func (x *BuildArgs) GetContainerFiles() map[string]*ContainerFile
- func (x *BuildArgs) GetContainifyRegistry() string
- func (x *BuildArgs) GetEnvironment() EnvType
- func (x *BuildArgs) GetFile() string
- func (x *BuildArgs) GetFolder() string
- func (x *BuildArgs) GetImage() string
- func (x *BuildArgs) GetImageTag() string
- func (x *BuildArgs) GetOrganization() string
- func (x *BuildArgs) GetPlatform() string
- func (x *BuildArgs) GetProperties() map[string]*structpb.ListValue
- func (x *BuildArgs) GetRegistries() map[string]*ContainerRegistry
- func (x *BuildArgs) GetRegistry() string
- func (x *BuildArgs) GetRepository() string
- func (x *BuildArgs) GetRuntimeType() RuntimeType
- func (x *BuildArgs) GetSourceFiles() []string
- func (x *BuildArgs) GetSourcePackages() []string
- func (x *BuildArgs) GetVerbose() bool
- func (*BuildArgs) ProtoMessage()
- func (x *BuildArgs) ProtoReflect() protoreflect.Message
- func (x *BuildArgs) Reset()
- func (x *BuildArgs) String() string
- type BuildArgsGroup
- type BuildArgsGroupResponse
- func (*BuildArgsGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildArgsGroupResponse) GetArgs() []*BuildArgsGroup
- func (*BuildArgsGroupResponse) ProtoMessage()
- func (x *BuildArgsGroupResponse) ProtoReflect() protoreflect.Message
- func (x *BuildArgsGroupResponse) Reset()
- func (x *BuildArgsGroupResponse) String() string
- type BuildArgsResponse
- func (*BuildArgsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildArgsResponse) GetArgs() []*BuildArgs
- func (*BuildArgsResponse) ProtoMessage()
- func (x *BuildArgsResponse) ProtoReflect() protoreflect.Message
- func (x *BuildArgsResponse) Reset()
- func (x *BuildArgsResponse) String() string
- type BuildType
- type ContainerFile
- func (*ContainerFile) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerFile) GetContent() string
- func (x *ContainerFile) GetName() string
- func (*ContainerFile) ProtoMessage()
- func (x *ContainerFile) ProtoReflect() protoreflect.Message
- func (x *ContainerFile) Reset()
- func (x *ContainerFile) String() string
- type ContainerRegistry
- func (*ContainerRegistry) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerRegistry) GetPassword() string
- func (x *ContainerRegistry) GetUsername() string
- func (*ContainerRegistry) ProtoMessage()
- func (x *ContainerRegistry) ProtoReflect() protoreflect.Message
- func (x *ContainerRegistry) Reset()
- func (x *ContainerRegistry) String() string
- type ContainifyCIEngineClient
- type ContainifyCIEngineServer
- type ContainifyCIv1
- type ContainifyCIv1GRPCClient
- type ContainifyCIv1GRPCPlugin
- type ContainifyCIv2
- type ContainifyCIv2GRPCClient
- type ContainifyCIv2GRPCPlugin
- type Empty
- type EnvType
- type GRPCServerContainifyCIv1
- type GRPCServerContainifyCIv2
- type RuntimeType
- func (RuntimeType) Descriptor() protoreflect.EnumDescriptor
- func (x RuntimeType) Enum() *RuntimeType
- func (RuntimeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RuntimeType) Number() protoreflect.EnumNumber
- func (x RuntimeType) String() string
- func (RuntimeType) Type() protoreflect.EnumType
- type UnimplementedContainifyCIEngineServer
- type UnsafeContainifyCIEngineServer
Constants ¶
const ( ContainifyCIEngine_GetBuild_FullMethodName = "/protos2.ContainifyCIEngine/GetBuild" ContainifyCIEngine_GetBuilds_FullMethodName = "/protos2.ContainifyCIEngine/GetBuilds" )
Variables ¶
var ( EnvType_name = map[int32]string{ 0: "local", 1: "build", 2: "production", } EnvType_value = map[string]int32{ "local": 0, "build": 1, "production": 2, } )
Enum value maps for EnvType.
var ( BuildType_name = map[int32]string{ 0: "GoLang", 1: "Maven", 2: "Python", 3: "Generic", 4: "NodeJS", 5: "Typescript", 6: "Zig", 7: "Rust", 8: "AI", } BuildType_value = map[string]int32{ "GoLang": 0, "Maven": 1, "Python": 2, "Generic": 3, "NodeJS": 4, "Typescript": 5, "Zig": 6, "Rust": 7, "AI": 8, } )
Enum value maps for BuildType.
var ( RuntimeType_name = map[int32]string{ 0: "Docker", 1: "Podman", 2: "Host", 3: "Test", 4: "Unknown", } RuntimeType_value = map[string]int32{ "Docker": 0, "Podman": 1, "Host": 2, "Test": 3, "Unknown": 4, } )
Enum value maps for RuntimeType.
var ContainifyCIEngine_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos2.ContainifyCIEngine", HandlerType: (*ContainifyCIEngineServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBuild", Handler: _ContainifyCIEngine_GetBuild_Handler, }, { MethodName: "GetBuilds", Handler: _ContainifyCIEngine_GetBuilds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "build.proto", }
ContainifyCIEngine_ServiceDesc is the grpc.ServiceDesc for ContainifyCIEngine service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_build_proto protoreflect.FileDescriptor
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "BASIC_PLUGIN",
MagicCookieValue: "hello",
}
Handshake is a common handshake that is shared by plugin and host.
var PluginMap = map[int]plugin.PluginSet{ 1: { "containifyci": &ContainifyCIv1GRPCPlugin{}, }, 2: { "containifyci": &ContainifyCIv2GRPCPlugin{}, }, }
PluginMap is the map of plugins we can dispense.
Functions ¶
func RegisterContainifyCIEngineServer ¶
func RegisterContainifyCIEngineServer(s grpc.ServiceRegistrar, srv ContainifyCIEngineServer)
Types ¶
type BuildArgs ¶
type BuildArgs struct {
Application string `protobuf:"bytes,1,opt,name=Application,proto3" json:"Application,omitempty"`
Environment EnvType `protobuf:"varint,2,opt,name=Environment,proto3,enum=protos2.EnvType" json:"Environment,omitempty"`
Properties map[string]*structpb.ListValue `` /* 161-byte string literal not displayed */
File string `protobuf:"bytes,4,opt,name=File,proto3" json:"File,omitempty"`
Folder string `protobuf:"bytes,5,opt,name=Folder,proto3" json:"Folder,omitempty"`
Image string `protobuf:"bytes,6,opt,name=Image,proto3" json:"Image,omitempty"`
ImageTag string `protobuf:"bytes,7,opt,name=ImageTag,proto3" json:"ImageTag,omitempty"`
BuildType BuildType `protobuf:"varint,8,opt,name=BuildType,proto3,enum=protos2.BuildType" json:"BuildType,omitempty"`
RuntimeType RuntimeType `protobuf:"varint,9,opt,name=RuntimeType,proto3,enum=protos2.RuntimeType" json:"RuntimeType,omitempty"`
Organization string `protobuf:"bytes,10,opt,name=Organization,proto3" json:"Organization,omitempty"`
Platform string `protobuf:"bytes,11,opt,name=Platform,proto3" json:"Platform,omitempty"`
Repository string `protobuf:"bytes,12,opt,name=Repository,proto3" json:"Repository,omitempty"`
Registry string `protobuf:"bytes,13,opt,name=Registry,proto3" json:"Registry,omitempty"`
SourcePackages []string `protobuf:"bytes,14,rep,name=SourcePackages,proto3" json:"SourcePackages,omitempty"`
SourceFiles []string `protobuf:"bytes,15,rep,name=SourceFiles,proto3" json:"SourceFiles,omitempty"`
Verbose bool `protobuf:"varint,16,opt,name=Verbose,proto3" json:"Verbose,omitempty"`
ContainifyRegistry string `protobuf:"bytes,17,opt,name=ContainifyRegistry,proto3" json:"ContainifyRegistry,omitempty"`
Registries map[string]*ContainerRegistry `` /* 162-byte string literal not displayed */
ContainerFiles map[string]*ContainerFile `` /* 170-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*BuildArgs) Descriptor
deprecated
func (*BuildArgs) GetApplication ¶
func (*BuildArgs) GetBuildType ¶
func (*BuildArgs) GetContainerFiles ¶ added in v0.18.0
func (x *BuildArgs) GetContainerFiles() map[string]*ContainerFile
func (*BuildArgs) GetContainifyRegistry ¶ added in v0.2.1
func (*BuildArgs) GetEnvironment ¶
func (*BuildArgs) GetImageTag ¶
func (*BuildArgs) GetOrganization ¶
func (*BuildArgs) GetPlatform ¶
func (*BuildArgs) GetProperties ¶
func (*BuildArgs) GetRegistries ¶ added in v0.3.0
func (x *BuildArgs) GetRegistries() map[string]*ContainerRegistry
func (*BuildArgs) GetRegistry ¶
func (*BuildArgs) GetRepository ¶
func (*BuildArgs) GetRuntimeType ¶
func (x *BuildArgs) GetRuntimeType() RuntimeType
func (*BuildArgs) GetSourceFiles ¶
func (*BuildArgs) GetSourcePackages ¶
func (*BuildArgs) GetVerbose ¶
func (*BuildArgs) ProtoMessage ¶
func (*BuildArgs) ProtoMessage()
func (*BuildArgs) ProtoReflect ¶
func (x *BuildArgs) ProtoReflect() protoreflect.Message
type BuildArgsGroup ¶ added in v0.7.0
type BuildArgsGroup struct {
Args []*BuildArgs `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
func (*BuildArgsGroup) Descriptor
deprecated
added in
v0.7.0
func (*BuildArgsGroup) Descriptor() ([]byte, []int)
Deprecated: Use BuildArgsGroup.ProtoReflect.Descriptor instead.
func (*BuildArgsGroup) GetArgs ¶ added in v0.7.0
func (x *BuildArgsGroup) GetArgs() []*BuildArgs
func (*BuildArgsGroup) ProtoMessage ¶ added in v0.7.0
func (*BuildArgsGroup) ProtoMessage()
func (*BuildArgsGroup) ProtoReflect ¶ added in v0.7.0
func (x *BuildArgsGroup) ProtoReflect() protoreflect.Message
func (*BuildArgsGroup) Reset ¶ added in v0.7.0
func (x *BuildArgsGroup) Reset()
func (*BuildArgsGroup) String ¶ added in v0.7.0
func (x *BuildArgsGroup) String() string
type BuildArgsGroupResponse ¶ added in v0.7.0
type BuildArgsGroupResponse struct {
Args []*BuildArgsGroup `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
func (*BuildArgsGroupResponse) Descriptor
deprecated
added in
v0.7.0
func (*BuildArgsGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildArgsGroupResponse.ProtoReflect.Descriptor instead.
func (*BuildArgsGroupResponse) GetArgs ¶ added in v0.7.0
func (x *BuildArgsGroupResponse) GetArgs() []*BuildArgsGroup
func (*BuildArgsGroupResponse) ProtoMessage ¶ added in v0.7.0
func (*BuildArgsGroupResponse) ProtoMessage()
func (*BuildArgsGroupResponse) ProtoReflect ¶ added in v0.7.0
func (x *BuildArgsGroupResponse) ProtoReflect() protoreflect.Message
func (*BuildArgsGroupResponse) Reset ¶ added in v0.7.0
func (x *BuildArgsGroupResponse) Reset()
func (*BuildArgsGroupResponse) String ¶ added in v0.7.0
func (x *BuildArgsGroupResponse) String() string
type BuildArgsResponse ¶
type BuildArgsResponse struct {
Args []*BuildArgs `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
deprecated kept for backward compatibility
func (*BuildArgsResponse) Descriptor
deprecated
func (*BuildArgsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildArgsResponse.ProtoReflect.Descriptor instead.
func (*BuildArgsResponse) GetArgs ¶
func (x *BuildArgsResponse) GetArgs() []*BuildArgs
func (*BuildArgsResponse) ProtoMessage ¶
func (*BuildArgsResponse) ProtoMessage()
func (*BuildArgsResponse) ProtoReflect ¶
func (x *BuildArgsResponse) ProtoReflect() protoreflect.Message
func (*BuildArgsResponse) Reset ¶
func (x *BuildArgsResponse) Reset()
func (*BuildArgsResponse) String ¶
func (x *BuildArgsResponse) String() string
type BuildType ¶
type BuildType int32
func (BuildType) Descriptor ¶
func (BuildType) Descriptor() protoreflect.EnumDescriptor
func (BuildType) EnumDescriptor
deprecated
func (BuildType) Number ¶
func (x BuildType) Number() protoreflect.EnumNumber
func (BuildType) Type ¶
func (BuildType) Type() protoreflect.EnumType
type ContainerFile ¶ added in v0.18.1
type ContainerFile struct {
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"`
// contains filtered or unexported fields
}
func (*ContainerFile) Descriptor
deprecated
added in
v0.18.1
func (*ContainerFile) Descriptor() ([]byte, []int)
Deprecated: Use ContainerFile.ProtoReflect.Descriptor instead.
func (*ContainerFile) GetContent ¶ added in v0.18.1
func (x *ContainerFile) GetContent() string
func (*ContainerFile) GetName ¶ added in v0.18.1
func (x *ContainerFile) GetName() string
func (*ContainerFile) ProtoMessage ¶ added in v0.18.1
func (*ContainerFile) ProtoMessage()
func (*ContainerFile) ProtoReflect ¶ added in v0.18.1
func (x *ContainerFile) ProtoReflect() protoreflect.Message
func (*ContainerFile) Reset ¶ added in v0.18.1
func (x *ContainerFile) Reset()
func (*ContainerFile) String ¶ added in v0.18.1
func (x *ContainerFile) String() string
type ContainerRegistry ¶ added in v0.3.0
type ContainerRegistry struct {
Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
// contains filtered or unexported fields
}
func (*ContainerRegistry) Descriptor
deprecated
added in
v0.3.0
func (*ContainerRegistry) Descriptor() ([]byte, []int)
Deprecated: Use ContainerRegistry.ProtoReflect.Descriptor instead.
func (*ContainerRegistry) GetPassword ¶ added in v0.3.0
func (x *ContainerRegistry) GetPassword() string
func (*ContainerRegistry) GetUsername ¶ added in v0.3.0
func (x *ContainerRegistry) GetUsername() string
func (*ContainerRegistry) ProtoMessage ¶ added in v0.3.0
func (*ContainerRegistry) ProtoMessage()
func (*ContainerRegistry) ProtoReflect ¶ added in v0.3.0
func (x *ContainerRegistry) ProtoReflect() protoreflect.Message
func (*ContainerRegistry) Reset ¶ added in v0.3.0
func (x *ContainerRegistry) Reset()
func (*ContainerRegistry) String ¶ added in v0.3.0
func (x *ContainerRegistry) String() string
type ContainifyCIEngineClient ¶
type ContainifyCIEngineClient interface {
// deprecated kept for backward compatibility
GetBuild(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BuildArgsResponse, error)
GetBuilds(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BuildArgsGroupResponse, error)
}
ContainifyCIEngineClient is the client API for ContainifyCIEngine service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewContainifyCIEngineClient ¶
func NewContainifyCIEngineClient(cc grpc.ClientConnInterface) ContainifyCIEngineClient
type ContainifyCIEngineServer ¶
type ContainifyCIEngineServer interface {
// deprecated kept for backward compatibility
GetBuild(context.Context, *Empty) (*BuildArgsResponse, error)
GetBuilds(context.Context, *Empty) (*BuildArgsGroupResponse, error)
// contains filtered or unexported methods
}
ContainifyCIEngineServer is the server API for ContainifyCIEngine service. All implementations must embed UnimplementedContainifyCIEngineServer for forward compatibility.
type ContainifyCIv1 ¶ added in v0.7.0
type ContainifyCIv1 interface {
GetBuild() (*BuildArgsResponse, error)
}
type ContainifyCIv1GRPCClient ¶ added in v0.7.0
type ContainifyCIv1GRPCClient struct {
// contains filtered or unexported fields
}
GRPCClient is an implementation of KV that talks over RPC.
func (*ContainifyCIv1GRPCClient) GetBuild ¶ added in v0.7.0
func (m *ContainifyCIv1GRPCClient) GetBuild() (*BuildArgsResponse, error)
type ContainifyCIv1GRPCPlugin ¶ added in v0.7.0
type ContainifyCIv1GRPCPlugin struct {
// GRPCPlugin must still implement the Plugin interface
plugin.Plugin
// Concrete implementation, written in Go. This is only used for plugins
// that are written in Go.
Impl ContainifyCIv1
}
func (*ContainifyCIv1GRPCPlugin) GRPCClient ¶ added in v0.7.0
func (p *ContainifyCIv1GRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*ContainifyCIv1GRPCPlugin) GRPCServer ¶ added in v0.7.0
func (p *ContainifyCIv1GRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
type ContainifyCIv2 ¶ added in v0.7.0
type ContainifyCIv2 interface {
GetBuilds() (*BuildArgsGroupResponse, error)
}
type ContainifyCIv2GRPCClient ¶ added in v0.7.0
type ContainifyCIv2GRPCClient struct {
// contains filtered or unexported fields
}
GRPCClient is an implementation of KV that talks over RPC.
func (*ContainifyCIv2GRPCClient) GetBuilds ¶ added in v0.7.0
func (m *ContainifyCIv2GRPCClient) GetBuilds() (*BuildArgsGroupResponse, error)
type ContainifyCIv2GRPCPlugin ¶ added in v0.7.0
type ContainifyCIv2GRPCPlugin struct {
// GRPCPlugin must still implement the Plugin interface
plugin.Plugin
// Concrete implementation, written in Go. This is only used for plugins
// that are written in Go.
Impl ContainifyCIv2
}
func (*ContainifyCIv2GRPCPlugin) GRPCClient ¶ added in v0.7.0
func (p *ContainifyCIv2GRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*ContainifyCIv2GRPCPlugin) GRPCServer ¶ added in v0.7.0
func (p *ContainifyCIv2GRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EnvType ¶
type EnvType int32
func (EnvType) Descriptor ¶
func (EnvType) Descriptor() protoreflect.EnumDescriptor
func (EnvType) EnumDescriptor
deprecated
func (EnvType) Number ¶
func (x EnvType) Number() protoreflect.EnumNumber
func (EnvType) Type ¶
func (EnvType) Type() protoreflect.EnumType
type GRPCServerContainifyCIv1 ¶ added in v0.7.0
type GRPCServerContainifyCIv1 struct {
// This is the real implementation
Impl ContainifyCIv1
UnimplementedContainifyCIEngineServer
// contains filtered or unexported fields
}
func (*GRPCServerContainifyCIv1) GetBuild ¶ added in v0.7.0
func (m *GRPCServerContainifyCIv1) GetBuild(ctx context.Context, _ *Empty) (*BuildArgsResponse, error)
type GRPCServerContainifyCIv2 ¶ added in v0.7.0
type GRPCServerContainifyCIv2 struct {
// This is the real implementation
Impl ContainifyCIv2
UnimplementedContainifyCIEngineServer
// contains filtered or unexported fields
}
func (*GRPCServerContainifyCIv2) GetBuilds ¶ added in v0.7.0
func (m *GRPCServerContainifyCIv2) GetBuilds(ctx context.Context, _ *Empty) (*BuildArgsGroupResponse, error)
type RuntimeType ¶
type RuntimeType int32
const ( RuntimeType_Docker RuntimeType = 0 RuntimeType_Podman RuntimeType = 1 RuntimeType_Host RuntimeType = 2 RuntimeType_Test RuntimeType = 3 RuntimeType_Unknown RuntimeType = 4 )
func (RuntimeType) Descriptor ¶
func (RuntimeType) Descriptor() protoreflect.EnumDescriptor
func (RuntimeType) Enum ¶
func (x RuntimeType) Enum() *RuntimeType
func (RuntimeType) EnumDescriptor
deprecated
func (RuntimeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RuntimeType.Descriptor instead.
func (RuntimeType) Number ¶
func (x RuntimeType) Number() protoreflect.EnumNumber
func (RuntimeType) String ¶
func (x RuntimeType) String() string
func (RuntimeType) Type ¶
func (RuntimeType) Type() protoreflect.EnumType
type UnimplementedContainifyCIEngineServer ¶
type UnimplementedContainifyCIEngineServer struct{}
UnimplementedContainifyCIEngineServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedContainifyCIEngineServer) GetBuild ¶
func (UnimplementedContainifyCIEngineServer) GetBuild(context.Context, *Empty) (*BuildArgsResponse, error)
func (UnimplementedContainifyCIEngineServer) GetBuilds ¶ added in v0.7.0
func (UnimplementedContainifyCIEngineServer) GetBuilds(context.Context, *Empty) (*BuildArgsGroupResponse, error)
type UnsafeContainifyCIEngineServer ¶
type UnsafeContainifyCIEngineServer interface {
// contains filtered or unexported methods
}
UnsafeContainifyCIEngineServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContainifyCIEngineServer will result in compilation errors.