connector

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionDeleteRequest

type CollectionDeleteRequest = model.ConnectorDeleteInputs

type CollectionGetRequest

type CollectionGetRequest struct {
	model.ConnectorQueryInputs `path:",inline" query:",inline"`

	runtime.RequestCollection[
		predicate.Connector, connector.OrderOption,
	] `query:",inline"`

	WithGlobal bool `query:"withGlobal,omitempty"`

	Stream *runtime.RequestUnidiStream
}

func (*CollectionGetRequest) SetStream

func (r *CollectionGetRequest) SetStream(stream runtime.RequestUnidiStream)

type CollectionGetResponse

type CollectionGetResponse = []*model.ConnectorOutput

type CreateRequest

type CreateRequest struct {
	model.ConnectorCreateInput `path:",inline" json:",inline"`
}

func (*CreateRequest) Validate

func (r *CreateRequest) Validate() error

type CreateResponse

type CreateResponse = *model.ConnectorOutput

type DeleteRequest

type DeleteRequest = model.ConnectorDeleteInput

type GetRequest

type GetRequest struct {
	model.ConnectorQueryInput `path:",inline"`
}

type GetResponse

type GetResponse = *model.ConnectorOutput

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionDelete

func (h Handler) CollectionDelete(req CollectionDeleteRequest) error

func (Handler) CollectionGet

func (h Handler) CollectionGet(req CollectionGetRequest) (CollectionGetResponse, int, error)

func (Handler) Create

func (h Handler) Create(req CreateRequest) (CreateResponse, error)

func (Handler) Delete

func (h Handler) Delete(req DeleteRequest) error

func (Handler) Get

func (h Handler) Get(req GetRequest) (GetResponse, error)

func (Handler) Kind

func (Handler) Kind() string

func (Handler) RouteApplyCostTools

func (h Handler) RouteApplyCostTools(
	req RouteApplyCostToolsRequest,
) error

func (Handler) RouteGetRepositories

func (h Handler) RouteGetRepositories(
	req RouteGetRepositoriesRequest,
) (RouteGetRepositoriesResponse, error)

func (Handler) RouteSyncCostData

func (h Handler) RouteSyncCostData(
	req RouteSyncCostDataRequest,
) error

func (Handler) Update

func (h Handler) Update(req UpdateRequest) error

type RouteApplyCostToolsRequest

type RouteApplyCostToolsRequest struct {
	model.ConnectorQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

func (*RouteApplyCostToolsRequest) Validate

func (r *RouteApplyCostToolsRequest) Validate() error

type RouteGetRepositoriesRequest

type RouteGetRepositoriesRequest struct {
	model.ConnectorQueryInput `path:",inline"`

	Query   *string `query:"query,omitempty"`
	Page    int     `query:"page,default=1"`
	PerPage int     `query:"perPage,default=10"`
	// contains filtered or unexported fields
}

type RouteGetRepositoriesResponse

type RouteGetRepositoriesResponse = []*scm.Repository

type RouteGetRepositoryBranchesRequest

type RouteGetRepositoryBranchesRequest struct {
	model.ConnectorQueryInput `path:",inline"`

	Repository string  `query:"repository"`
	Query      *string `query:"query,omitempty"`
	Page       int     `query:"page,default=1"`
	PerPage    int     `query:"perPage,default=10"`
	// contains filtered or unexported fields
}

type RouteGetRepositoryBranchesResponse

type RouteGetRepositoryBranchesResponse = []*scm.Reference

type RouteSyncCostDataRequest

type RouteSyncCostDataRequest struct {
	model.ConnectorQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

func (*RouteSyncCostDataRequest) Validate

func (r *RouteSyncCostDataRequest) Validate() error

type UpdateRequest

type UpdateRequest struct {
	model.ConnectorUpdateInput `path:",inline" json:",inline"`
}

func (*UpdateRequest) Validate

func (r *UpdateRequest) Validate() error

Jump to

Keyboard shortcuts

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