genproto: google.golang.org/genproto/googleapis/devtools/sourcerepo/v1 Index | Files

package sourcerepo

import "google.golang.org/genproto/googleapis/devtools/sourcerepo/v1"

Index

Package Files

sourcerepo.pb.go

Variables

var File_google_devtools_sourcerepo_v1_sourcerepo_proto protoreflect.FileDescriptor

func RegisterSourceRepoServer Uses

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

type CreateRepoRequest Uses

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 Uses

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

Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.

func (*CreateRepoRequest) GetParent Uses

func (x *CreateRepoRequest) GetParent() string

func (*CreateRepoRequest) GetRepo Uses

func (x *CreateRepoRequest) GetRepo() *Repo

func (*CreateRepoRequest) ProtoMessage Uses

func (*CreateRepoRequest) ProtoMessage()

func (*CreateRepoRequest) ProtoReflect Uses

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

func (*CreateRepoRequest) Reset Uses

func (x *CreateRepoRequest) Reset()

func (*CreateRepoRequest) String Uses

func (x *CreateRepoRequest) String() string

type DeleteRepoRequest Uses

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 Uses

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

Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.

func (*DeleteRepoRequest) GetName Uses

func (x *DeleteRepoRequest) GetName() string

func (*DeleteRepoRequest) ProtoMessage Uses

func (*DeleteRepoRequest) ProtoMessage()

func (*DeleteRepoRequest) ProtoReflect Uses

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

func (*DeleteRepoRequest) Reset Uses

func (x *DeleteRepoRequest) Reset()

func (*DeleteRepoRequest) String Uses

func (x *DeleteRepoRequest) String() string

type GetRepoRequest Uses

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 Uses

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

Deprecated: Use GetRepoRequest.ProtoReflect.Descriptor instead.

func (*GetRepoRequest) GetName Uses

func (x *GetRepoRequest) GetName() string

func (*GetRepoRequest) ProtoMessage Uses

func (*GetRepoRequest) ProtoMessage()

func (*GetRepoRequest) ProtoReflect Uses

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

func (*GetRepoRequest) Reset Uses

func (x *GetRepoRequest) Reset()

func (*GetRepoRequest) String Uses

func (x *GetRepoRequest) String() string

type ListReposRequest Uses

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 Uses

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

Deprecated: Use ListReposRequest.ProtoReflect.Descriptor instead.

func (*ListReposRequest) GetName Uses

func (x *ListReposRequest) GetName() string

func (*ListReposRequest) GetPageSize Uses

func (x *ListReposRequest) GetPageSize() int32

func (*ListReposRequest) GetPageToken Uses

func (x *ListReposRequest) GetPageToken() string

func (*ListReposRequest) ProtoMessage Uses

func (*ListReposRequest) ProtoMessage()

func (*ListReposRequest) ProtoReflect Uses

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

func (*ListReposRequest) Reset Uses

func (x *ListReposRequest) Reset()

func (*ListReposRequest) String Uses

func (x *ListReposRequest) String() string

type ListReposResponse Uses

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 Uses

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

Deprecated: Use ListReposResponse.ProtoReflect.Descriptor instead.

func (*ListReposResponse) GetNextPageToken Uses

func (x *ListReposResponse) GetNextPageToken() string

func (*ListReposResponse) GetRepos Uses

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

func (*ListReposResponse) ProtoMessage Uses

func (*ListReposResponse) ProtoMessage()

func (*ListReposResponse) ProtoReflect Uses

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

func (*ListReposResponse) Reset Uses

func (x *ListReposResponse) Reset()

func (*ListReposResponse) String Uses

func (x *ListReposResponse) String() string

type MirrorConfig Uses

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 Uses

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

Deprecated: Use MirrorConfig.ProtoReflect.Descriptor instead.

func (*MirrorConfig) GetDeployKeyId Uses

func (x *MirrorConfig) GetDeployKeyId() string

func (*MirrorConfig) GetUrl Uses

func (x *MirrorConfig) GetUrl() string

func (*MirrorConfig) GetWebhookId Uses

func (x *MirrorConfig) GetWebhookId() string

func (*MirrorConfig) ProtoMessage Uses

func (*MirrorConfig) ProtoMessage()

func (*MirrorConfig) ProtoReflect Uses

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

func (*MirrorConfig) Reset Uses

func (x *MirrorConfig) Reset()

func (*MirrorConfig) String Uses

func (x *MirrorConfig) String() string

type Repo Uses

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 Uses

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

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetMirrorConfig Uses

func (x *Repo) GetMirrorConfig() *MirrorConfig

func (*Repo) GetName Uses

func (x *Repo) GetName() string

func (*Repo) GetSize Uses

func (x *Repo) GetSize() int64

func (*Repo) GetUrl Uses

func (x *Repo) GetUrl() string

func (*Repo) ProtoMessage Uses

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect Uses

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

func (*Repo) Reset Uses

func (x *Repo) Reset()

func (*Repo) String Uses

func (x *Repo) String() string

type SourceRepoClient Uses

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 Uses

func NewSourceRepoClient(cc grpc.ClientConnInterface) SourceRepoClient

type SourceRepoServer Uses

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 Uses

type UnimplementedSourceRepoServer struct {
}

UnimplementedSourceRepoServer can be embedded to have forward compatible implementations.

func (*UnimplementedSourceRepoServer) CreateRepo Uses

func (*UnimplementedSourceRepoServer) CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)

func (*UnimplementedSourceRepoServer) DeleteRepo Uses

func (*UnimplementedSourceRepoServer) DeleteRepo(context.Context, *DeleteRepoRequest) (*emptypb.Empty, error)

func (*UnimplementedSourceRepoServer) GetIamPolicy Uses

func (*UnimplementedSourceRepoServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedSourceRepoServer) GetRepo Uses

func (*UnimplementedSourceRepoServer) GetRepo(context.Context, *GetRepoRequest) (*Repo, error)

func (*UnimplementedSourceRepoServer) ListRepos Uses

func (*UnimplementedSourceRepoServer) ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)

func (*UnimplementedSourceRepoServer) SetIamPolicy Uses

func (*UnimplementedSourceRepoServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedSourceRepoServer) TestIamPermissions Uses

func (*UnimplementedSourceRepoServer) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)

Package sourcerepo imports 12 packages (graph). Updated 2020-09-03. Refresh now. Tools for package owners.