project

package
v2.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 21 Imported by: 14

Documentation

Overview

Package project is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProject        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProject          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterProjectServiceHandler

func RegisterProjectServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProjectServiceHandler registers the http handlers for service ProjectService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProjectServiceHandlerClient

func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error

RegisterProjectServiceHandlerClient registers the http handlers for service ProjectService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProjectServiceClient" to call the correct interceptors.

func RegisterProjectServiceHandlerFromEndpoint

func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProjectServiceHandlerFromEndpoint is same as RegisterProjectServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProjectServiceHandlerServer

func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServiceServer) error

RegisterProjectServiceHandlerServer registers the http handlers for service ProjectService to "mux". UnaryRPC :call ProjectServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProjectServiceHandlerFromEndpoint instead.

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)

Types

type DetailedProjectsResponse added in v2.2.0

type DetailedProjectsResponse struct {
	GlobalProjects       []*v1alpha1.AppProject `protobuf:"bytes,1,rep,name=globalProjects,proto3" json:"globalProjects,omitempty"`
	Project              *v1alpha1.AppProject   `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	Repositories         []*v1alpha1.Repository `protobuf:"bytes,3,rep,name=repositories,proto3" json:"repositories,omitempty"`
	Clusters             []*v1alpha1.Cluster    `protobuf:"bytes,4,rep,name=clusters,proto3" json:"clusters,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*DetailedProjectsResponse) Descriptor added in v2.2.0

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

func (*DetailedProjectsResponse) GetClusters added in v2.2.0

func (m *DetailedProjectsResponse) GetClusters() []*v1alpha1.Cluster

func (*DetailedProjectsResponse) GetGlobalProjects added in v2.2.0

func (m *DetailedProjectsResponse) GetGlobalProjects() []*v1alpha1.AppProject

func (*DetailedProjectsResponse) GetProject added in v2.2.0

func (m *DetailedProjectsResponse) GetProject() *v1alpha1.AppProject

func (*DetailedProjectsResponse) GetRepositories added in v2.2.0

func (m *DetailedProjectsResponse) GetRepositories() []*v1alpha1.Repository

func (*DetailedProjectsResponse) Marshal added in v2.2.0

func (m *DetailedProjectsResponse) Marshal() (dAtA []byte, err error)

func (*DetailedProjectsResponse) MarshalTo added in v2.2.0

func (m *DetailedProjectsResponse) MarshalTo(dAtA []byte) (int, error)

func (*DetailedProjectsResponse) MarshalToSizedBuffer added in v2.2.0

func (m *DetailedProjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DetailedProjectsResponse) ProtoMessage added in v2.2.0

func (*DetailedProjectsResponse) ProtoMessage()

func (*DetailedProjectsResponse) Reset added in v2.2.0

func (m *DetailedProjectsResponse) Reset()

func (*DetailedProjectsResponse) Size added in v2.2.0

func (m *DetailedProjectsResponse) Size() (n int)

func (*DetailedProjectsResponse) String added in v2.2.0

func (m *DetailedProjectsResponse) String() string

func (*DetailedProjectsResponse) Unmarshal added in v2.2.0

func (m *DetailedProjectsResponse) Unmarshal(dAtA []byte) error

func (*DetailedProjectsResponse) XXX_DiscardUnknown added in v2.2.0

func (m *DetailedProjectsResponse) XXX_DiscardUnknown()

func (*DetailedProjectsResponse) XXX_Marshal added in v2.2.0

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

func (*DetailedProjectsResponse) XXX_Merge added in v2.2.0

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

func (*DetailedProjectsResponse) XXX_Size added in v2.2.0

func (m *DetailedProjectsResponse) XXX_Size() int

func (*DetailedProjectsResponse) XXX_Unmarshal added in v2.2.0

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

type EmptyResponse

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

func (*EmptyResponse) Descriptor

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

func (*EmptyResponse) Marshal

func (m *EmptyResponse) Marshal() (dAtA []byte, err error)

func (*EmptyResponse) MarshalTo

func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)

func (*EmptyResponse) MarshalToSizedBuffer

func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size

func (m *EmptyResponse) Size() (n int)

func (*EmptyResponse) String

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal

func (m *EmptyResponse) Unmarshal(dAtA []byte) error

func (*EmptyResponse) XXX_DiscardUnknown

func (m *EmptyResponse) XXX_DiscardUnknown()

func (*EmptyResponse) XXX_Marshal

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

func (*EmptyResponse) XXX_Merge

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

func (*EmptyResponse) XXX_Size

func (m *EmptyResponse) XXX_Size() int

func (*EmptyResponse) XXX_Unmarshal

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

type GlobalProjectsResponse

type GlobalProjectsResponse struct {
	Items                []*v1alpha1.AppProject `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*GlobalProjectsResponse) Descriptor

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

func (*GlobalProjectsResponse) GetItems

func (m *GlobalProjectsResponse) GetItems() []*v1alpha1.AppProject

func (*GlobalProjectsResponse) Marshal

func (m *GlobalProjectsResponse) Marshal() (dAtA []byte, err error)

func (*GlobalProjectsResponse) MarshalTo

func (m *GlobalProjectsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GlobalProjectsResponse) MarshalToSizedBuffer

func (m *GlobalProjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GlobalProjectsResponse) ProtoMessage

func (*GlobalProjectsResponse) ProtoMessage()

func (*GlobalProjectsResponse) Reset

func (m *GlobalProjectsResponse) Reset()

func (*GlobalProjectsResponse) Size

func (m *GlobalProjectsResponse) Size() (n int)

func (*GlobalProjectsResponse) String

func (m *GlobalProjectsResponse) String() string

func (*GlobalProjectsResponse) Unmarshal

func (m *GlobalProjectsResponse) Unmarshal(dAtA []byte) error

func (*GlobalProjectsResponse) XXX_DiscardUnknown

func (m *GlobalProjectsResponse) XXX_DiscardUnknown()

func (*GlobalProjectsResponse) XXX_Marshal

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

func (*GlobalProjectsResponse) XXX_Merge

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

func (*GlobalProjectsResponse) XXX_Size

func (m *GlobalProjectsResponse) XXX_Size() int

func (*GlobalProjectsResponse) XXX_Unmarshal

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

type ListProjectLinksRequest added in v2.6.0

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

func (*ListProjectLinksRequest) Descriptor added in v2.6.0

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

func (*ListProjectLinksRequest) GetName added in v2.6.0

func (m *ListProjectLinksRequest) GetName() string

func (*ListProjectLinksRequest) Marshal added in v2.6.0

func (m *ListProjectLinksRequest) Marshal() (dAtA []byte, err error)

func (*ListProjectLinksRequest) MarshalTo added in v2.6.0

func (m *ListProjectLinksRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListProjectLinksRequest) MarshalToSizedBuffer added in v2.6.0

func (m *ListProjectLinksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListProjectLinksRequest) ProtoMessage added in v2.6.0

func (*ListProjectLinksRequest) ProtoMessage()

func (*ListProjectLinksRequest) Reset added in v2.6.0

func (m *ListProjectLinksRequest) Reset()

func (*ListProjectLinksRequest) Size added in v2.6.0

func (m *ListProjectLinksRequest) Size() (n int)

func (*ListProjectLinksRequest) String added in v2.6.0

func (m *ListProjectLinksRequest) String() string

func (*ListProjectLinksRequest) Unmarshal added in v2.6.0

func (m *ListProjectLinksRequest) Unmarshal(dAtA []byte) error

func (*ListProjectLinksRequest) XXX_DiscardUnknown added in v2.6.0

func (m *ListProjectLinksRequest) XXX_DiscardUnknown()

func (*ListProjectLinksRequest) XXX_Marshal added in v2.6.0

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

func (*ListProjectLinksRequest) XXX_Merge added in v2.6.0

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

func (*ListProjectLinksRequest) XXX_Size added in v2.6.0

func (m *ListProjectLinksRequest) XXX_Size() int

func (*ListProjectLinksRequest) XXX_Unmarshal added in v2.6.0

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

type ProjectCreateRequest

type ProjectCreateRequest struct {
	Project              *v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Upsert               bool                 `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

ProjectCreateRequest defines project creation parameters.

func (*ProjectCreateRequest) Descriptor

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

func (*ProjectCreateRequest) GetProject

func (m *ProjectCreateRequest) GetProject() *v1alpha1.AppProject

func (*ProjectCreateRequest) GetUpsert

func (m *ProjectCreateRequest) GetUpsert() bool

func (*ProjectCreateRequest) Marshal

func (m *ProjectCreateRequest) Marshal() (dAtA []byte, err error)

func (*ProjectCreateRequest) MarshalTo

func (m *ProjectCreateRequest) MarshalTo(dAtA []byte) (int, error)

func (*ProjectCreateRequest) MarshalToSizedBuffer

func (m *ProjectCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectCreateRequest) ProtoMessage

func (*ProjectCreateRequest) ProtoMessage()

func (*ProjectCreateRequest) Reset

func (m *ProjectCreateRequest) Reset()

func (*ProjectCreateRequest) Size

func (m *ProjectCreateRequest) Size() (n int)

func (*ProjectCreateRequest) String

func (m *ProjectCreateRequest) String() string

func (*ProjectCreateRequest) Unmarshal

func (m *ProjectCreateRequest) Unmarshal(dAtA []byte) error

func (*ProjectCreateRequest) XXX_DiscardUnknown

func (m *ProjectCreateRequest) XXX_DiscardUnknown()

func (*ProjectCreateRequest) XXX_Marshal

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

func (*ProjectCreateRequest) XXX_Merge

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

func (*ProjectCreateRequest) XXX_Size

func (m *ProjectCreateRequest) XXX_Size() int

func (*ProjectCreateRequest) XXX_Unmarshal

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

type ProjectQuery

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

ProjectQuery is a query for Project resources

func (*ProjectQuery) Descriptor

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

func (*ProjectQuery) GetName

func (m *ProjectQuery) GetName() string

func (*ProjectQuery) Marshal

func (m *ProjectQuery) Marshal() (dAtA []byte, err error)

func (*ProjectQuery) MarshalTo

func (m *ProjectQuery) MarshalTo(dAtA []byte) (int, error)

func (*ProjectQuery) MarshalToSizedBuffer

func (m *ProjectQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectQuery) ProtoMessage

func (*ProjectQuery) ProtoMessage()

func (*ProjectQuery) Reset

func (m *ProjectQuery) Reset()

func (*ProjectQuery) Size

func (m *ProjectQuery) Size() (n int)

func (*ProjectQuery) String

func (m *ProjectQuery) String() string

func (*ProjectQuery) Unmarshal

func (m *ProjectQuery) Unmarshal(dAtA []byte) error

func (*ProjectQuery) XXX_DiscardUnknown

func (m *ProjectQuery) XXX_DiscardUnknown()

func (*ProjectQuery) XXX_Marshal

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

func (*ProjectQuery) XXX_Merge

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

func (*ProjectQuery) XXX_Size

func (m *ProjectQuery) XXX_Size() int

func (*ProjectQuery) XXX_Unmarshal

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

type ProjectServiceClient

type ProjectServiceClient interface {
	// Create a new project token
	CreateToken(ctx context.Context, in *ProjectTokenCreateRequest, opts ...grpc.CallOption) (*ProjectTokenResponse, error)
	// Delete a new project token
	DeleteToken(ctx context.Context, in *ProjectTokenDeleteRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Create a new project
	Create(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
	// List returns list of projects
	List(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProjectList, error)
	// GetDetailedProject returns a project that include project, global project and scoped resources by name
	GetDetailedProject(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*DetailedProjectsResponse, error)
	// Get returns a project by name
	Get(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
	// Get returns a virtual project by name
	GetGlobalProjects(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*GlobalProjectsResponse, error)
	// Update updates a project
	Update(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
	// Delete deletes a project
	Delete(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*EmptyResponse, error)
	// ListEvents returns a list of project events
	ListEvents(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1.EventList, error)
	// GetSchedulesState returns true if there are any active sync syncWindows
	GetSyncWindowsState(ctx context.Context, in *SyncWindowsQuery, opts ...grpc.CallOption) (*SyncWindowsResponse, error)
	// ListLinks returns all deep links for the particular project
	ListLinks(ctx context.Context, in *ListProjectLinksRequest, opts ...grpc.CallOption) (*application.LinksResponse, error)
}

ProjectServiceClient is the client API for ProjectService service.

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

func NewProjectServiceClient

func NewProjectServiceClient(cc *grpc.ClientConn) ProjectServiceClient

type ProjectServiceServer

type ProjectServiceServer interface {
	// Create a new project token
	CreateToken(context.Context, *ProjectTokenCreateRequest) (*ProjectTokenResponse, error)
	// Delete a new project token
	DeleteToken(context.Context, *ProjectTokenDeleteRequest) (*EmptyResponse, error)
	// Create a new project
	Create(context.Context, *ProjectCreateRequest) (*v1alpha1.AppProject, error)
	// List returns list of projects
	List(context.Context, *ProjectQuery) (*v1alpha1.AppProjectList, error)
	// GetDetailedProject returns a project that include project, global project and scoped resources by name
	GetDetailedProject(context.Context, *ProjectQuery) (*DetailedProjectsResponse, error)
	// Get returns a project by name
	Get(context.Context, *ProjectQuery) (*v1alpha1.AppProject, error)
	// Get returns a virtual project by name
	GetGlobalProjects(context.Context, *ProjectQuery) (*GlobalProjectsResponse, error)
	// Update updates a project
	Update(context.Context, *ProjectUpdateRequest) (*v1alpha1.AppProject, error)
	// Delete deletes a project
	Delete(context.Context, *ProjectQuery) (*EmptyResponse, error)
	// ListEvents returns a list of project events
	ListEvents(context.Context, *ProjectQuery) (*v1.EventList, error)
	// GetSchedulesState returns true if there are any active sync syncWindows
	GetSyncWindowsState(context.Context, *SyncWindowsQuery) (*SyncWindowsResponse, error)
	// ListLinks returns all deep links for the particular project
	ListLinks(context.Context, *ListProjectLinksRequest) (*application.LinksResponse, error)
}

ProjectServiceServer is the server API for ProjectService service.

type ProjectTokenCreateRequest

type ProjectTokenCreateRequest struct {
	Project     string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Role        string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	// expiresIn represents a duration in seconds
	ExpiresIn            int64    `protobuf:"varint,4,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
	Id                   string   `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ProjectTokenCreateRequest defines project token creation parameters.

func (*ProjectTokenCreateRequest) Descriptor

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

func (*ProjectTokenCreateRequest) GetDescription

func (m *ProjectTokenCreateRequest) GetDescription() string

func (*ProjectTokenCreateRequest) GetExpiresIn

func (m *ProjectTokenCreateRequest) GetExpiresIn() int64

func (*ProjectTokenCreateRequest) GetId

func (m *ProjectTokenCreateRequest) GetId() string

func (*ProjectTokenCreateRequest) GetProject

func (m *ProjectTokenCreateRequest) GetProject() string

func (*ProjectTokenCreateRequest) GetRole

func (m *ProjectTokenCreateRequest) GetRole() string

func (*ProjectTokenCreateRequest) Marshal

func (m *ProjectTokenCreateRequest) Marshal() (dAtA []byte, err error)

func (*ProjectTokenCreateRequest) MarshalTo

func (m *ProjectTokenCreateRequest) MarshalTo(dAtA []byte) (int, error)

func (*ProjectTokenCreateRequest) MarshalToSizedBuffer

func (m *ProjectTokenCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectTokenCreateRequest) ProtoMessage

func (*ProjectTokenCreateRequest) ProtoMessage()

func (*ProjectTokenCreateRequest) Reset

func (m *ProjectTokenCreateRequest) Reset()

func (*ProjectTokenCreateRequest) Size

func (m *ProjectTokenCreateRequest) Size() (n int)

func (*ProjectTokenCreateRequest) String

func (m *ProjectTokenCreateRequest) String() string

func (*ProjectTokenCreateRequest) Unmarshal

func (m *ProjectTokenCreateRequest) Unmarshal(dAtA []byte) error

func (*ProjectTokenCreateRequest) XXX_DiscardUnknown

func (m *ProjectTokenCreateRequest) XXX_DiscardUnknown()

func (*ProjectTokenCreateRequest) XXX_Marshal

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

func (*ProjectTokenCreateRequest) XXX_Merge

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

func (*ProjectTokenCreateRequest) XXX_Size

func (m *ProjectTokenCreateRequest) XXX_Size() int

func (*ProjectTokenCreateRequest) XXX_Unmarshal

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

type ProjectTokenDeleteRequest

type ProjectTokenDeleteRequest struct {
	Project              string   `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Role                 string   `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	Iat                  int64    `protobuf:"varint,3,opt,name=iat,proto3" json:"iat,omitempty"`
	Id                   string   `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ProjectTokenCreateRequest defines project token deletion parameters.

func (*ProjectTokenDeleteRequest) Descriptor

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

func (*ProjectTokenDeleteRequest) GetIat

func (m *ProjectTokenDeleteRequest) GetIat() int64

func (*ProjectTokenDeleteRequest) GetId

func (m *ProjectTokenDeleteRequest) GetId() string

func (*ProjectTokenDeleteRequest) GetProject

func (m *ProjectTokenDeleteRequest) GetProject() string

func (*ProjectTokenDeleteRequest) GetRole

func (m *ProjectTokenDeleteRequest) GetRole() string

func (*ProjectTokenDeleteRequest) Marshal

func (m *ProjectTokenDeleteRequest) Marshal() (dAtA []byte, err error)

func (*ProjectTokenDeleteRequest) MarshalTo

func (m *ProjectTokenDeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*ProjectTokenDeleteRequest) MarshalToSizedBuffer

func (m *ProjectTokenDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectTokenDeleteRequest) ProtoMessage

func (*ProjectTokenDeleteRequest) ProtoMessage()

func (*ProjectTokenDeleteRequest) Reset

func (m *ProjectTokenDeleteRequest) Reset()

func (*ProjectTokenDeleteRequest) Size

func (m *ProjectTokenDeleteRequest) Size() (n int)

func (*ProjectTokenDeleteRequest) String

func (m *ProjectTokenDeleteRequest) String() string

func (*ProjectTokenDeleteRequest) Unmarshal

func (m *ProjectTokenDeleteRequest) Unmarshal(dAtA []byte) error

func (*ProjectTokenDeleteRequest) XXX_DiscardUnknown

func (m *ProjectTokenDeleteRequest) XXX_DiscardUnknown()

func (*ProjectTokenDeleteRequest) XXX_Marshal

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

func (*ProjectTokenDeleteRequest) XXX_Merge

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

func (*ProjectTokenDeleteRequest) XXX_Size

func (m *ProjectTokenDeleteRequest) XXX_Size() int

func (*ProjectTokenDeleteRequest) XXX_Unmarshal

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

type ProjectTokenResponse

type ProjectTokenResponse 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:"-"`
}

ProjectTokenResponse wraps the created token or returns an empty string if deleted.

func (*ProjectTokenResponse) Descriptor

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

func (*ProjectTokenResponse) GetToken

func (m *ProjectTokenResponse) GetToken() string

func (*ProjectTokenResponse) Marshal

func (m *ProjectTokenResponse) Marshal() (dAtA []byte, err error)

func (*ProjectTokenResponse) MarshalTo

func (m *ProjectTokenResponse) MarshalTo(dAtA []byte) (int, error)

func (*ProjectTokenResponse) MarshalToSizedBuffer

func (m *ProjectTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectTokenResponse) ProtoMessage

func (*ProjectTokenResponse) ProtoMessage()

func (*ProjectTokenResponse) Reset

func (m *ProjectTokenResponse) Reset()

func (*ProjectTokenResponse) Size

func (m *ProjectTokenResponse) Size() (n int)

func (*ProjectTokenResponse) String

func (m *ProjectTokenResponse) String() string

func (*ProjectTokenResponse) Unmarshal

func (m *ProjectTokenResponse) Unmarshal(dAtA []byte) error

func (*ProjectTokenResponse) XXX_DiscardUnknown

func (m *ProjectTokenResponse) XXX_DiscardUnknown()

func (*ProjectTokenResponse) XXX_Marshal

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

func (*ProjectTokenResponse) XXX_Merge

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

func (*ProjectTokenResponse) XXX_Size

func (m *ProjectTokenResponse) XXX_Size() int

func (*ProjectTokenResponse) XXX_Unmarshal

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

type ProjectUpdateRequest

type ProjectUpdateRequest struct {
	Project              *v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ProjectUpdateRequest) Descriptor

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

func (*ProjectUpdateRequest) GetProject

func (m *ProjectUpdateRequest) GetProject() *v1alpha1.AppProject

func (*ProjectUpdateRequest) Marshal

func (m *ProjectUpdateRequest) Marshal() (dAtA []byte, err error)

func (*ProjectUpdateRequest) MarshalTo

func (m *ProjectUpdateRequest) MarshalTo(dAtA []byte) (int, error)

func (*ProjectUpdateRequest) MarshalToSizedBuffer

func (m *ProjectUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectUpdateRequest) ProtoMessage

func (*ProjectUpdateRequest) ProtoMessage()

func (*ProjectUpdateRequest) Reset

func (m *ProjectUpdateRequest) Reset()

func (*ProjectUpdateRequest) Size

func (m *ProjectUpdateRequest) Size() (n int)

func (*ProjectUpdateRequest) String

func (m *ProjectUpdateRequest) String() string

func (*ProjectUpdateRequest) Unmarshal

func (m *ProjectUpdateRequest) Unmarshal(dAtA []byte) error

func (*ProjectUpdateRequest) XXX_DiscardUnknown

func (m *ProjectUpdateRequest) XXX_DiscardUnknown()

func (*ProjectUpdateRequest) XXX_Marshal

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

func (*ProjectUpdateRequest) XXX_Merge

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

func (*ProjectUpdateRequest) XXX_Size

func (m *ProjectUpdateRequest) XXX_Size() int

func (*ProjectUpdateRequest) XXX_Unmarshal

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

type SyncWindowsQuery

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

func (*SyncWindowsQuery) Descriptor

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

func (*SyncWindowsQuery) GetName

func (m *SyncWindowsQuery) GetName() string

func (*SyncWindowsQuery) Marshal

func (m *SyncWindowsQuery) Marshal() (dAtA []byte, err error)

func (*SyncWindowsQuery) MarshalTo

func (m *SyncWindowsQuery) MarshalTo(dAtA []byte) (int, error)

func (*SyncWindowsQuery) MarshalToSizedBuffer

func (m *SyncWindowsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncWindowsQuery) ProtoMessage

func (*SyncWindowsQuery) ProtoMessage()

func (*SyncWindowsQuery) Reset

func (m *SyncWindowsQuery) Reset()

func (*SyncWindowsQuery) Size

func (m *SyncWindowsQuery) Size() (n int)

func (*SyncWindowsQuery) String

func (m *SyncWindowsQuery) String() string

func (*SyncWindowsQuery) Unmarshal

func (m *SyncWindowsQuery) Unmarshal(dAtA []byte) error

func (*SyncWindowsQuery) XXX_DiscardUnknown

func (m *SyncWindowsQuery) XXX_DiscardUnknown()

func (*SyncWindowsQuery) XXX_Marshal

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

func (*SyncWindowsQuery) XXX_Merge

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

func (*SyncWindowsQuery) XXX_Size

func (m *SyncWindowsQuery) XXX_Size() int

func (*SyncWindowsQuery) XXX_Unmarshal

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

type SyncWindowsResponse

type SyncWindowsResponse struct {
	Windows              []*v1alpha1.SyncWindow `protobuf:"bytes,1,rep,name=windows,proto3" json:"windows,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*SyncWindowsResponse) Descriptor

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

func (*SyncWindowsResponse) GetWindows

func (m *SyncWindowsResponse) GetWindows() []*v1alpha1.SyncWindow

func (*SyncWindowsResponse) Marshal

func (m *SyncWindowsResponse) Marshal() (dAtA []byte, err error)

func (*SyncWindowsResponse) MarshalTo

func (m *SyncWindowsResponse) MarshalTo(dAtA []byte) (int, error)

func (*SyncWindowsResponse) MarshalToSizedBuffer

func (m *SyncWindowsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncWindowsResponse) ProtoMessage

func (*SyncWindowsResponse) ProtoMessage()

func (*SyncWindowsResponse) Reset

func (m *SyncWindowsResponse) Reset()

func (*SyncWindowsResponse) Size

func (m *SyncWindowsResponse) Size() (n int)

func (*SyncWindowsResponse) String

func (m *SyncWindowsResponse) String() string

func (*SyncWindowsResponse) Unmarshal

func (m *SyncWindowsResponse) Unmarshal(dAtA []byte) error

func (*SyncWindowsResponse) XXX_DiscardUnknown

func (m *SyncWindowsResponse) XXX_DiscardUnknown()

func (*SyncWindowsResponse) XXX_Marshal

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

func (*SyncWindowsResponse) XXX_Merge

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

func (*SyncWindowsResponse) XXX_Size

func (m *SyncWindowsResponse) XXX_Size() int

func (*SyncWindowsResponse) XXX_Unmarshal

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

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct {
}

UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProjectServiceServer) Create

func (*UnimplementedProjectServiceServer) CreateToken

func (*UnimplementedProjectServiceServer) Delete

func (*UnimplementedProjectServiceServer) DeleteToken

func (*UnimplementedProjectServiceServer) Get

func (*UnimplementedProjectServiceServer) GetDetailedProject added in v2.2.0

func (*UnimplementedProjectServiceServer) GetGlobalProjects

func (*UnimplementedProjectServiceServer) GetSyncWindowsState

func (*UnimplementedProjectServiceServer) List

func (*UnimplementedProjectServiceServer) ListEvents

func (*UnimplementedProjectServiceServer) Update

Jump to

Keyboard shortcuts

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