sourcerepo

package
v0.0.0-...-51c3e5b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_devtools_sourcerepo_v1_sourcerepo_proto protoreflect.FileDescriptor

Functions

func RegisterSourceRepoServer

func RegisterSourceRepoServer(s *grpc.Server, srv SourceRepoServer)

Types

type CreateRepoRequest

type CreateRepoRequest struct {

	// The project in which to create the repo. Values are of the form
	// `projects/<project>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The repo to create.  Only name should be set; setting other fields
	// is an error.  The project in the name should match the parent field.
	Repo *Repo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

Request for CreateRepo

func (*CreateRepoRequest) Descriptor deprecated

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

Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.

func (*CreateRepoRequest) GetParent

func (x *CreateRepoRequest) GetParent() string

func (*CreateRepoRequest) GetRepo

func (x *CreateRepoRequest) GetRepo() *Repo

func (*CreateRepoRequest) ProtoMessage

func (*CreateRepoRequest) ProtoMessage()

func (*CreateRepoRequest) ProtoReflect

func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message

func (*CreateRepoRequest) Reset

func (x *CreateRepoRequest) Reset()

func (*CreateRepoRequest) String

func (x *CreateRepoRequest) String() string

type DeleteRepoRequest

type DeleteRepoRequest struct {

	// The name of the repo to delete. Values are of the form
	// `projects/<project>/repos/<repo>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for DeleteRepo.

func (*DeleteRepoRequest) Descriptor deprecated

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

Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.

func (*DeleteRepoRequest) GetName

func (x *DeleteRepoRequest) GetName() string

func (*DeleteRepoRequest) ProtoMessage

func (*DeleteRepoRequest) ProtoMessage()

func (*DeleteRepoRequest) ProtoReflect

func (x *DeleteRepoRequest) ProtoReflect() protoreflect.Message

func (*DeleteRepoRequest) Reset

func (x *DeleteRepoRequest) Reset()

func (*DeleteRepoRequest) String

func (x *DeleteRepoRequest) String() string

type GetRepoRequest

type GetRepoRequest struct {

	// The name of the requested repository. Values are of the form
	// `projects/<project>/repos/<repo>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for GetRepo.

func (*GetRepoRequest) Descriptor deprecated

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

Deprecated: Use GetRepoRequest.ProtoReflect.Descriptor instead.

func (*GetRepoRequest) GetName

func (x *GetRepoRequest) GetName() string

func (*GetRepoRequest) ProtoMessage

func (*GetRepoRequest) ProtoMessage()

func (*GetRepoRequest) ProtoReflect

func (x *GetRepoRequest) ProtoReflect() protoreflect.Message

func (*GetRepoRequest) Reset

func (x *GetRepoRequest) Reset()

func (*GetRepoRequest) String

func (x *GetRepoRequest) String() string

type ListReposRequest

type ListReposRequest struct {

	// The project ID whose repos should be listed. Values are of the form
	// `projects/<project>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Maximum number of repositories to return; between 1 and 500.
	// If not set or zero, defaults to 100 at the server.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Resume listing repositories where a prior ListReposResponse
	// left off. This is an opaque token that must be obtained from
	// a recent, prior ListReposResponse's next_page_token field.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for ListRepos.

func (*ListReposRequest) Descriptor deprecated

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

Deprecated: Use ListReposRequest.ProtoReflect.Descriptor instead.

func (*ListReposRequest) GetName

func (x *ListReposRequest) GetName() string

func (*ListReposRequest) GetPageSize

func (x *ListReposRequest) GetPageSize() int32

func (*ListReposRequest) GetPageToken

func (x *ListReposRequest) GetPageToken() string

func (*ListReposRequest) ProtoMessage

func (*ListReposRequest) ProtoMessage()

func (*ListReposRequest) ProtoReflect

func (x *ListReposRequest) ProtoReflect() protoreflect.Message

func (*ListReposRequest) Reset

func (x *ListReposRequest) Reset()

func (*ListReposRequest) String

func (x *ListReposRequest) String() string

type ListReposResponse

type ListReposResponse struct {

	// The listed repos.
	Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
	// If non-empty, additional repositories exist within the project. These
	// can be retrieved by including this value in the next ListReposRequest's
	// page_token field.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for ListRepos. The size is not set in the returned repositories.

func (*ListReposResponse) Descriptor deprecated

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

Deprecated: Use ListReposResponse.ProtoReflect.Descriptor instead.

func (*ListReposResponse) GetNextPageToken

func (x *ListReposResponse) GetNextPageToken() string

func (*ListReposResponse) GetRepos

func (x *ListReposResponse) GetRepos() []*Repo

func (*ListReposResponse) ProtoMessage

func (*ListReposResponse) ProtoMessage()

func (*ListReposResponse) ProtoReflect

func (x *ListReposResponse) ProtoReflect() protoreflect.Message

func (*ListReposResponse) Reset

func (x *ListReposResponse) Reset()

func (*ListReposResponse) String

func (x *ListReposResponse) String() string

type MirrorConfig

type MirrorConfig struct {

	// URL of the main repository at the other hosting service.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// ID of the webhook listening to updates to trigger mirroring.
	// Removing this webhook from the other hosting service will stop
	// Google Cloud Source Repositories from receiving notifications,
	// and thereby disabling mirroring.
	WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// ID of the SSH deploy key at the other hosting service.
	// Removing this key from the other service would deauthorize
	// Google Cloud Source Repositories from mirroring.
	DeployKeyId string `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId,proto3" json:"deploy_key_id,omitempty"`
	// contains filtered or unexported fields
}

Configuration to automatically mirror a repository from another hosting service, for example GitHub or BitBucket.

func (*MirrorConfig) Descriptor deprecated

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

Deprecated: Use MirrorConfig.ProtoReflect.Descriptor instead.

func (*MirrorConfig) GetDeployKeyId

func (x *MirrorConfig) GetDeployKeyId() string

func (*MirrorConfig) GetUrl

func (x *MirrorConfig) GetUrl() string

func (*MirrorConfig) GetWebhookId

func (x *MirrorConfig) GetWebhookId() string

func (*MirrorConfig) ProtoMessage

func (*MirrorConfig) ProtoMessage()

func (*MirrorConfig) ProtoReflect

func (x *MirrorConfig) ProtoReflect() protoreflect.Message

func (*MirrorConfig) Reset

func (x *MirrorConfig) Reset()

func (*MirrorConfig) String

func (x *MirrorConfig) String() string

type Repo

type Repo struct {

	// Resource name of the repository, of the form
	// `projects/<project>/repos/<repo>`.  The repo name may contain slashes.
	// eg, `projects/myproject/repos/name/with/slash`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The disk usage of the repo, in bytes. Read-only field. Size is only
	// returned by GetRepo.
	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// URL to clone the repository from Google Cloud Source Repositories.
	// Read-only field.
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// How this repository mirrors a repository managed by another service.
	// Read-only field.
	MirrorConfig *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig,proto3" json:"mirror_config,omitempty"`
	// contains filtered or unexported fields
}

A repository (or repo) is a Git repository storing versioned source content.

func (*Repo) Descriptor deprecated

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

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetMirrorConfig

func (x *Repo) GetMirrorConfig() *MirrorConfig

func (*Repo) GetName

func (x *Repo) GetName() string

func (*Repo) GetSize

func (x *Repo) GetSize() int64

func (*Repo) GetUrl

func (x *Repo) GetUrl() string

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

func (x *Repo) ProtoReflect() protoreflect.Message

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

type SourceRepoClient

type SourceRepoClient interface {
	// Returns all repos belonging to a project. The sizes of the repos are
	// not set by ListRepos.  To get the size of a repo, use GetRepo.
	ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error)
	// Returns information about a repo.
	GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error)
	// Creates a repo in the given project with the given name.
	//
	// If the named repository already exists, `CreateRepo` returns
	// `ALREADY_EXISTS`.
	CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error)
	// Deletes a repo.
	DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Sets the access control policy on the specified resource. Replaces any
	// existing policy.
	SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Gets the access control policy for a resource.
	// Returns an empty policy if the resource exists and does not have a policy
	// set.
	GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Returns permissions that a caller has on the specified resource.
	// If the resource does not exist, this will return an empty set of
	// permissions, not a NOT_FOUND error.
	TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}

SourceRepoClient is the client API for SourceRepo service.

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

func NewSourceRepoClient

func NewSourceRepoClient(cc grpc.ClientConnInterface) SourceRepoClient

type SourceRepoServer

type SourceRepoServer interface {
	// Returns all repos belonging to a project. The sizes of the repos are
	// not set by ListRepos.  To get the size of a repo, use GetRepo.
	ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
	// Returns information about a repo.
	GetRepo(context.Context, *GetRepoRequest) (*Repo, error)
	// Creates a repo in the given project with the given name.
	//
	// If the named repository already exists, `CreateRepo` returns
	// `ALREADY_EXISTS`.
	CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
	// Deletes a repo.
	DeleteRepo(context.Context, *DeleteRepoRequest) (*emptypb.Empty, error)
	// Sets the access control policy on the specified resource. Replaces any
	// existing policy.
	SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
	// Gets the access control policy for a resource.
	// Returns an empty policy if the resource exists and does not have a policy
	// set.
	GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
	// Returns permissions that a caller has on the specified resource.
	// If the resource does not exist, this will return an empty set of
	// permissions, not a NOT_FOUND error.
	TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}

SourceRepoServer is the server API for SourceRepo service.

type UnimplementedSourceRepoServer

type UnimplementedSourceRepoServer struct {
}

UnimplementedSourceRepoServer can be embedded to have forward compatible implementations.

func (*UnimplementedSourceRepoServer) CreateRepo

func (*UnimplementedSourceRepoServer) DeleteRepo

func (*UnimplementedSourceRepoServer) GetIamPolicy

func (*UnimplementedSourceRepoServer) GetRepo

func (*UnimplementedSourceRepoServer) ListRepos

func (*UnimplementedSourceRepoServer) SetIamPolicy

func (*UnimplementedSourceRepoServer) TestIamPermissions

Jump to

Keyboard shortcuts

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