common

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthenticationPluginServer added in v0.3.0

func RegisterAuthenticationPluginServer(s *grpc.Server, srv AuthenticationPluginServer)

func RegisterRepositoryPluginServer added in v0.1.1

func RegisterRepositoryPluginServer(s *grpc.Server, srv RepositoryPluginServer)

Types

type AuthenticateRequest added in v0.3.0

type AuthenticateRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticateRequest) Descriptor added in v0.3.0

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

func (*AuthenticateRequest) GetToken added in v0.3.0

func (m *AuthenticateRequest) GetToken() string

func (*AuthenticateRequest) ProtoMessage added in v0.3.0

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) Reset added in v0.3.0

func (m *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String added in v0.3.0

func (m *AuthenticateRequest) String() string

func (*AuthenticateRequest) XXX_DiscardUnknown added in v0.3.0

func (m *AuthenticateRequest) XXX_DiscardUnknown()

func (*AuthenticateRequest) XXX_Marshal added in v0.3.0

func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateRequest) XXX_Merge added in v0.3.0

func (m *AuthenticateRequest) XXX_Merge(src proto.Message)

func (*AuthenticateRequest) XXX_Size added in v0.3.0

func (m *AuthenticateRequest) XXX_Size() int

func (*AuthenticateRequest) XXX_Unmarshal added in v0.3.0

func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error

type AuthenticateResponse added in v0.3.0

type AuthenticateResponse struct {
	Known                bool              `protobuf:"varint,1,opt,name=known,proto3" json:"known,omitempty"`
	Username             string            `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Metadata             map[string]string `` /* 157-byte string literal not displayed */
	Emails               []string          `protobuf:"bytes,4,rep,name=emails,proto3" json:"emails,omitempty"`
	Teams                []string          `protobuf:"bytes,5,rep,name=teams,proto3" json:"teams,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*AuthenticateResponse) Descriptor added in v0.3.0

func (*AuthenticateResponse) Descriptor() ([]byte, []int)

func (*AuthenticateResponse) GetEmails added in v0.3.0

func (m *AuthenticateResponse) GetEmails() []string

func (*AuthenticateResponse) GetKnown added in v0.3.0

func (m *AuthenticateResponse) GetKnown() bool

func (*AuthenticateResponse) GetMetadata added in v0.3.0

func (m *AuthenticateResponse) GetMetadata() map[string]string

func (*AuthenticateResponse) GetTeams added in v0.3.0

func (m *AuthenticateResponse) GetTeams() []string

func (*AuthenticateResponse) GetUsername added in v0.3.0

func (m *AuthenticateResponse) GetUsername() string

func (*AuthenticateResponse) ProtoMessage added in v0.3.0

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) Reset added in v0.3.0

func (m *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String added in v0.3.0

func (m *AuthenticateResponse) String() string

func (*AuthenticateResponse) XXX_DiscardUnknown added in v0.3.0

func (m *AuthenticateResponse) XXX_DiscardUnknown()

func (*AuthenticateResponse) XXX_Marshal added in v0.3.0

func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateResponse) XXX_Merge added in v0.3.0

func (m *AuthenticateResponse) XXX_Merge(src proto.Message)

func (*AuthenticateResponse) XXX_Size added in v0.3.0

func (m *AuthenticateResponse) XXX_Size() int

func (*AuthenticateResponse) XXX_Unmarshal added in v0.3.0

func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error

type AuthenticationPluginClient added in v0.3.0

type AuthenticationPluginClient interface {
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
}

AuthenticationPluginClient is the client API for AuthenticationPlugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthenticationPluginClient added in v0.3.0

func NewAuthenticationPluginClient(cc grpc.ClientConnInterface) AuthenticationPluginClient

type AuthenticationPluginServer added in v0.3.0

type AuthenticationPluginServer interface {
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
}

AuthenticationPluginServer is the server API for AuthenticationPlugin service.

type ContentInitContainerRequest added in v0.1.1

type ContentInitContainerRequest struct {
	Repository           *v1.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	Paths                []string       `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ContentInitContainerRequest) Descriptor added in v0.1.1

func (*ContentInitContainerRequest) Descriptor() ([]byte, []int)

func (*ContentInitContainerRequest) GetPaths added in v0.2.0

func (m *ContentInitContainerRequest) GetPaths() []string

func (*ContentInitContainerRequest) GetRepository added in v0.1.1

func (m *ContentInitContainerRequest) GetRepository() *v1.Repository

func (*ContentInitContainerRequest) ProtoMessage added in v0.1.1

func (*ContentInitContainerRequest) ProtoMessage()

func (*ContentInitContainerRequest) Reset added in v0.1.1

func (m *ContentInitContainerRequest) Reset()

func (*ContentInitContainerRequest) String added in v0.1.1

func (m *ContentInitContainerRequest) String() string

func (*ContentInitContainerRequest) XXX_DiscardUnknown added in v0.1.1

func (m *ContentInitContainerRequest) XXX_DiscardUnknown()

func (*ContentInitContainerRequest) XXX_Marshal added in v0.1.1

func (m *ContentInitContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContentInitContainerRequest) XXX_Merge added in v0.1.1

func (m *ContentInitContainerRequest) XXX_Merge(src proto.Message)

func (*ContentInitContainerRequest) XXX_Size added in v0.1.1

func (m *ContentInitContainerRequest) XXX_Size() int

func (*ContentInitContainerRequest) XXX_Unmarshal added in v0.1.1

func (m *ContentInitContainerRequest) XXX_Unmarshal(b []byte) error

type ContentInitContainerResponse added in v0.1.1

type ContentInitContainerResponse struct {
	Container            []byte   `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContentInitContainerResponse) Descriptor added in v0.1.1

func (*ContentInitContainerResponse) Descriptor() ([]byte, []int)

func (*ContentInitContainerResponse) GetContainer added in v0.1.1

func (m *ContentInitContainerResponse) GetContainer() []byte

func (*ContentInitContainerResponse) ProtoMessage added in v0.1.1

func (*ContentInitContainerResponse) ProtoMessage()

func (*ContentInitContainerResponse) Reset added in v0.1.1

func (m *ContentInitContainerResponse) Reset()

func (*ContentInitContainerResponse) String added in v0.1.1

func (*ContentInitContainerResponse) XXX_DiscardUnknown added in v0.1.1

func (m *ContentInitContainerResponse) XXX_DiscardUnknown()

func (*ContentInitContainerResponse) XXX_Marshal added in v0.1.1

func (m *ContentInitContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContentInitContainerResponse) XXX_Merge added in v0.1.1

func (m *ContentInitContainerResponse) XXX_Merge(src proto.Message)

func (*ContentInitContainerResponse) XXX_Size added in v0.1.1

func (m *ContentInitContainerResponse) XXX_Size() int

func (*ContentInitContainerResponse) XXX_Unmarshal added in v0.1.1

func (m *ContentInitContainerResponse) XXX_Unmarshal(b []byte) error

type DownloadRequest added in v0.1.1

type DownloadRequest struct {
	Repository           *v1.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	Path                 string         `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*DownloadRequest) Descriptor added in v0.1.1

func (*DownloadRequest) Descriptor() ([]byte, []int)

func (*DownloadRequest) GetPath added in v0.1.1

func (m *DownloadRequest) GetPath() string

func (*DownloadRequest) GetRepository added in v0.1.1

func (m *DownloadRequest) GetRepository() *v1.Repository

func (*DownloadRequest) ProtoMessage added in v0.1.1

func (*DownloadRequest) ProtoMessage()

func (*DownloadRequest) Reset added in v0.1.1

func (m *DownloadRequest) Reset()

func (*DownloadRequest) String added in v0.1.1

func (m *DownloadRequest) String() string

func (*DownloadRequest) XXX_DiscardUnknown added in v0.1.1

func (m *DownloadRequest) XXX_DiscardUnknown()

func (*DownloadRequest) XXX_Marshal added in v0.1.1

func (m *DownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DownloadRequest) XXX_Merge added in v0.1.1

func (m *DownloadRequest) XXX_Merge(src proto.Message)

func (*DownloadRequest) XXX_Size added in v0.1.1

func (m *DownloadRequest) XXX_Size() int

func (*DownloadRequest) XXX_Unmarshal added in v0.1.1

func (m *DownloadRequest) XXX_Unmarshal(b []byte) error

type DownloadResponse added in v0.1.1

type DownloadResponse struct {
	Content              []byte   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DownloadResponse) Descriptor added in v0.1.1

func (*DownloadResponse) Descriptor() ([]byte, []int)

func (*DownloadResponse) GetContent added in v0.1.1

func (m *DownloadResponse) GetContent() []byte

func (*DownloadResponse) ProtoMessage added in v0.1.1

func (*DownloadResponse) ProtoMessage()

func (*DownloadResponse) Reset added in v0.1.1

func (m *DownloadResponse) Reset()

func (*DownloadResponse) String added in v0.1.1

func (m *DownloadResponse) String() string

func (*DownloadResponse) XXX_DiscardUnknown added in v0.1.1

func (m *DownloadResponse) XXX_DiscardUnknown()

func (*DownloadResponse) XXX_Marshal added in v0.1.1

func (m *DownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DownloadResponse) XXX_Merge added in v0.1.1

func (m *DownloadResponse) XXX_Merge(src proto.Message)

func (*DownloadResponse) XXX_Size added in v0.1.1

func (m *DownloadResponse) XXX_Size() int

func (*DownloadResponse) XXX_Unmarshal added in v0.1.1

func (m *DownloadResponse) XXX_Unmarshal(b []byte) error

type GetRemoteAnnotationsRequest added in v0.1.1

type GetRemoteAnnotationsRequest struct {
	Repository           *v1.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*GetRemoteAnnotationsRequest) Descriptor added in v0.1.1

func (*GetRemoteAnnotationsRequest) Descriptor() ([]byte, []int)

func (*GetRemoteAnnotationsRequest) GetRepository added in v0.1.1

func (m *GetRemoteAnnotationsRequest) GetRepository() *v1.Repository

func (*GetRemoteAnnotationsRequest) ProtoMessage added in v0.1.1

func (*GetRemoteAnnotationsRequest) ProtoMessage()

func (*GetRemoteAnnotationsRequest) Reset added in v0.1.1

func (m *GetRemoteAnnotationsRequest) Reset()

func (*GetRemoteAnnotationsRequest) String added in v0.1.1

func (m *GetRemoteAnnotationsRequest) String() string

func (*GetRemoteAnnotationsRequest) XXX_DiscardUnknown added in v0.1.1

func (m *GetRemoteAnnotationsRequest) XXX_DiscardUnknown()

func (*GetRemoteAnnotationsRequest) XXX_Marshal added in v0.1.1

func (m *GetRemoteAnnotationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRemoteAnnotationsRequest) XXX_Merge added in v0.1.1

func (m *GetRemoteAnnotationsRequest) XXX_Merge(src proto.Message)

func (*GetRemoteAnnotationsRequest) XXX_Size added in v0.1.1

func (m *GetRemoteAnnotationsRequest) XXX_Size() int

func (*GetRemoteAnnotationsRequest) XXX_Unmarshal added in v0.1.1

func (m *GetRemoteAnnotationsRequest) XXX_Unmarshal(b []byte) error

type GetRemoteAnnotationsResponse added in v0.1.1

type GetRemoteAnnotationsResponse struct {
	Annotations          map[string]string `` /* 163-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*GetRemoteAnnotationsResponse) Descriptor added in v0.1.1

func (*GetRemoteAnnotationsResponse) Descriptor() ([]byte, []int)

func (*GetRemoteAnnotationsResponse) GetAnnotations added in v0.1.1

func (m *GetRemoteAnnotationsResponse) GetAnnotations() map[string]string

func (*GetRemoteAnnotationsResponse) ProtoMessage added in v0.1.1

func (*GetRemoteAnnotationsResponse) ProtoMessage()

func (*GetRemoteAnnotationsResponse) Reset added in v0.1.1

func (m *GetRemoteAnnotationsResponse) Reset()

func (*GetRemoteAnnotationsResponse) String added in v0.1.1

func (*GetRemoteAnnotationsResponse) XXX_DiscardUnknown added in v0.1.1

func (m *GetRemoteAnnotationsResponse) XXX_DiscardUnknown()

func (*GetRemoteAnnotationsResponse) XXX_Marshal added in v0.1.1

func (m *GetRemoteAnnotationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRemoteAnnotationsResponse) XXX_Merge added in v0.1.1

func (m *GetRemoteAnnotationsResponse) XXX_Merge(src proto.Message)

func (*GetRemoteAnnotationsResponse) XXX_Size added in v0.1.1

func (m *GetRemoteAnnotationsResponse) XXX_Size() int

func (*GetRemoteAnnotationsResponse) XXX_Unmarshal added in v0.1.1

func (m *GetRemoteAnnotationsResponse) XXX_Unmarshal(b []byte) error

type ListFilesReponse added in v0.1.1

type ListFilesReponse struct {
	Paths                []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListFilesReponse) Descriptor added in v0.1.1

func (*ListFilesReponse) Descriptor() ([]byte, []int)

func (*ListFilesReponse) GetPaths added in v0.1.1

func (m *ListFilesReponse) GetPaths() []string

func (*ListFilesReponse) ProtoMessage added in v0.1.1

func (*ListFilesReponse) ProtoMessage()

func (*ListFilesReponse) Reset added in v0.1.1

func (m *ListFilesReponse) Reset()

func (*ListFilesReponse) String added in v0.1.1

func (m *ListFilesReponse) String() string

func (*ListFilesReponse) XXX_DiscardUnknown added in v0.1.1

func (m *ListFilesReponse) XXX_DiscardUnknown()

func (*ListFilesReponse) XXX_Marshal added in v0.1.1

func (m *ListFilesReponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFilesReponse) XXX_Merge added in v0.1.1

func (m *ListFilesReponse) XXX_Merge(src proto.Message)

func (*ListFilesReponse) XXX_Size added in v0.1.1

func (m *ListFilesReponse) XXX_Size() int

func (*ListFilesReponse) XXX_Unmarshal added in v0.1.1

func (m *ListFilesReponse) XXX_Unmarshal(b []byte) error

type ListFilesRequest added in v0.1.1

type ListFilesRequest struct {
	Repository           *v1.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	Path                 string         `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ListFilesRequest) Descriptor added in v0.1.1

func (*ListFilesRequest) Descriptor() ([]byte, []int)

func (*ListFilesRequest) GetPath added in v0.1.1

func (m *ListFilesRequest) GetPath() string

func (*ListFilesRequest) GetRepository added in v0.1.1

func (m *ListFilesRequest) GetRepository() *v1.Repository

func (*ListFilesRequest) ProtoMessage added in v0.1.1

func (*ListFilesRequest) ProtoMessage()

func (*ListFilesRequest) Reset added in v0.1.1

func (m *ListFilesRequest) Reset()

func (*ListFilesRequest) String added in v0.1.1

func (m *ListFilesRequest) String() string

func (*ListFilesRequest) XXX_DiscardUnknown added in v0.1.1

func (m *ListFilesRequest) XXX_DiscardUnknown()

func (*ListFilesRequest) XXX_Marshal added in v0.1.1

func (m *ListFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFilesRequest) XXX_Merge added in v0.1.1

func (m *ListFilesRequest) XXX_Merge(src proto.Message)

func (*ListFilesRequest) XXX_Size added in v0.1.1

func (m *ListFilesRequest) XXX_Size() int

func (*ListFilesRequest) XXX_Unmarshal added in v0.1.1

func (m *ListFilesRequest) XXX_Unmarshal(b []byte) error

type RepoHostRequest added in v0.1.1

type RepoHostRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RepoHostRequest) Descriptor added in v0.1.1

func (*RepoHostRequest) Descriptor() ([]byte, []int)

func (*RepoHostRequest) ProtoMessage added in v0.1.1

func (*RepoHostRequest) ProtoMessage()

func (*RepoHostRequest) Reset added in v0.1.1

func (m *RepoHostRequest) Reset()

func (*RepoHostRequest) String added in v0.1.1

func (m *RepoHostRequest) String() string

func (*RepoHostRequest) XXX_DiscardUnknown added in v0.1.1

func (m *RepoHostRequest) XXX_DiscardUnknown()

func (*RepoHostRequest) XXX_Marshal added in v0.1.1

func (m *RepoHostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepoHostRequest) XXX_Merge added in v0.1.1

func (m *RepoHostRequest) XXX_Merge(src proto.Message)

func (*RepoHostRequest) XXX_Size added in v0.1.1

func (m *RepoHostRequest) XXX_Size() int

func (*RepoHostRequest) XXX_Unmarshal added in v0.1.1

func (m *RepoHostRequest) XXX_Unmarshal(b []byte) error

type RepoHostResponse added in v0.1.1

type RepoHostResponse struct {
	Host                 string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RepoHostResponse) Descriptor added in v0.1.1

func (*RepoHostResponse) Descriptor() ([]byte, []int)

func (*RepoHostResponse) GetHost added in v0.1.1

func (m *RepoHostResponse) GetHost() string

func (*RepoHostResponse) ProtoMessage added in v0.1.1

func (*RepoHostResponse) ProtoMessage()

func (*RepoHostResponse) Reset added in v0.1.1

func (m *RepoHostResponse) Reset()

func (*RepoHostResponse) String added in v0.1.1

func (m *RepoHostResponse) String() string

func (*RepoHostResponse) XXX_DiscardUnknown added in v0.1.1

func (m *RepoHostResponse) XXX_DiscardUnknown()

func (*RepoHostResponse) XXX_Marshal added in v0.1.1

func (m *RepoHostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepoHostResponse) XXX_Merge added in v0.1.1

func (m *RepoHostResponse) XXX_Merge(src proto.Message)

func (*RepoHostResponse) XXX_Size added in v0.1.1

func (m *RepoHostResponse) XXX_Size() int

func (*RepoHostResponse) XXX_Unmarshal added in v0.1.1

func (m *RepoHostResponse) XXX_Unmarshal(b []byte) error

type RepositoryPluginClient added in v0.1.1

type RepositoryPluginClient interface {
	// RepoHost returns the host which this plugins integrates with
	RepoHost(ctx context.Context, in *RepoHostRequest, opts ...grpc.CallOption) (*RepoHostResponse, error)
	// Resolve resolves the repo's revision based on its ref(erence)
	Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveResponse, error)
	// ContentInitContainer produces the init container YAML required to initialize
	// the build context from this repository in /workspace.
	ContentInitContainer(ctx context.Context, in *ContentInitContainerRequest, opts ...grpc.CallOption) (*ContentInitContainerResponse, error)
	// Download downloads a file from the repository.
	Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (*DownloadResponse, error)
	// ListFiles lists all files in a directory.
	ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesReponse, error)
	// GetRemoteAnnotations extracts werft annotations form information associated
	// with a particular commit, e.g. the commit message, PRs or merge requests.
	// Implementors can expect the revision of the repo object to be set.
	GetRemoteAnnotations(ctx context.Context, in *GetRemoteAnnotationsRequest, opts ...grpc.CallOption) (*GetRemoteAnnotationsResponse, error)
}

RepositoryPluginClient is the client API for RepositoryPlugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRepositoryPluginClient added in v0.1.1

func NewRepositoryPluginClient(cc grpc.ClientConnInterface) RepositoryPluginClient

type RepositoryPluginServer added in v0.1.1

type RepositoryPluginServer interface {
	// RepoHost returns the host which this plugins integrates with
	RepoHost(context.Context, *RepoHostRequest) (*RepoHostResponse, error)
	// Resolve resolves the repo's revision based on its ref(erence)
	Resolve(context.Context, *ResolveRequest) (*ResolveResponse, error)
	// ContentInitContainer produces the init container YAML required to initialize
	// the build context from this repository in /workspace.
	ContentInitContainer(context.Context, *ContentInitContainerRequest) (*ContentInitContainerResponse, error)
	// Download downloads a file from the repository.
	Download(context.Context, *DownloadRequest) (*DownloadResponse, error)
	// ListFiles lists all files in a directory.
	ListFiles(context.Context, *ListFilesRequest) (*ListFilesReponse, error)
	// GetRemoteAnnotations extracts werft annotations form information associated
	// with a particular commit, e.g. the commit message, PRs or merge requests.
	// Implementors can expect the revision of the repo object to be set.
	GetRemoteAnnotations(context.Context, *GetRemoteAnnotationsRequest) (*GetRemoteAnnotationsResponse, error)
}

RepositoryPluginServer is the server API for RepositoryPlugin service.

type ResolveRequest added in v0.1.1

type ResolveRequest struct {
	Repository           *v1.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ResolveRequest) Descriptor added in v0.1.1

func (*ResolveRequest) Descriptor() ([]byte, []int)

func (*ResolveRequest) GetRepository added in v0.1.1

func (m *ResolveRequest) GetRepository() *v1.Repository

func (*ResolveRequest) ProtoMessage added in v0.1.1

func (*ResolveRequest) ProtoMessage()

func (*ResolveRequest) Reset added in v0.1.1

func (m *ResolveRequest) Reset()

func (*ResolveRequest) String added in v0.1.1

func (m *ResolveRequest) String() string

func (*ResolveRequest) XXX_DiscardUnknown added in v0.1.1

func (m *ResolveRequest) XXX_DiscardUnknown()

func (*ResolveRequest) XXX_Marshal added in v0.1.1

func (m *ResolveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolveRequest) XXX_Merge added in v0.1.1

func (m *ResolveRequest) XXX_Merge(src proto.Message)

func (*ResolveRequest) XXX_Size added in v0.1.1

func (m *ResolveRequest) XXX_Size() int

func (*ResolveRequest) XXX_Unmarshal added in v0.1.1

func (m *ResolveRequest) XXX_Unmarshal(b []byte) error

type ResolveResponse added in v0.1.1

type ResolveResponse struct {
	Repository           *v1.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ResolveResponse) Descriptor added in v0.1.1

func (*ResolveResponse) Descriptor() ([]byte, []int)

func (*ResolveResponse) GetRepository added in v0.1.1

func (m *ResolveResponse) GetRepository() *v1.Repository

func (*ResolveResponse) ProtoMessage added in v0.1.1

func (*ResolveResponse) ProtoMessage()

func (*ResolveResponse) Reset added in v0.1.1

func (m *ResolveResponse) Reset()

func (*ResolveResponse) String added in v0.1.1

func (m *ResolveResponse) String() string

func (*ResolveResponse) XXX_DiscardUnknown added in v0.1.1

func (m *ResolveResponse) XXX_DiscardUnknown()

func (*ResolveResponse) XXX_Marshal added in v0.1.1

func (m *ResolveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolveResponse) XXX_Merge added in v0.1.1

func (m *ResolveResponse) XXX_Merge(src proto.Message)

func (*ResolveResponse) XXX_Size added in v0.1.1

func (m *ResolveResponse) XXX_Size() int

func (*ResolveResponse) XXX_Unmarshal added in v0.1.1

func (m *ResolveResponse) XXX_Unmarshal(b []byte) error

type Type

type Type string

Type denotes the plugin type

const (
	// TypeIntegration means the plugin can act as integration plugin
	TypeIntegration Type = "integration"

	// TypeRepository means the plugin can add support for remote repositories (e.g. GitHub)
	TypeRepository Type = "repository"

	// TypeAuthentication means the plugin can add support for authenticating requests (e.g. against GitHub)
	TypeAuthentication Type = "auth"
)

type UnimplementedAuthenticationPluginServer added in v0.3.0

type UnimplementedAuthenticationPluginServer struct {
}

UnimplementedAuthenticationPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthenticationPluginServer) Authenticate added in v0.3.0

type UnimplementedRepositoryPluginServer added in v0.1.1

type UnimplementedRepositoryPluginServer struct {
}

UnimplementedRepositoryPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedRepositoryPluginServer) ContentInitContainer added in v0.1.1

func (*UnimplementedRepositoryPluginServer) Download added in v0.1.1

func (*UnimplementedRepositoryPluginServer) GetRemoteAnnotations added in v0.1.1

func (*UnimplementedRepositoryPluginServer) ListFiles added in v0.1.1

func (*UnimplementedRepositoryPluginServer) RepoHost added in v0.1.1

func (*UnimplementedRepositoryPluginServer) Resolve added in v0.1.1

Jump to

Keyboard shortcuts

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