...

Package apiserver_impl

Overview ▾

Index ▾

func NewDefaultApiService(cancel context.CancelFunc, pushWatcher chan<- struct{}, kubeClient kclient.ClientInterface, podmanClient podman.Client, stateClient state.Client, preferenceClient preference.Client) openapi.DefaultApiServicer
func NewDevstateApiService(cancel context.CancelFunc, pushWatcher chan<- struct{}, kubeClient kclient.ClientInterface, podmanClient podman.Client, stateClient state.Client, preferenceClient preference.Client) openapi.DevstateApiServicer
type ApiServer
    func StartServer(ctx context.Context, cancelFunc context.CancelFunc, randomPort bool, port int, devfilePath string, devfileFiles []string, fsys filesystem.Filesystem, kubernetesClient kclient.ClientInterface, podmanClient podman.Client, stateClient state.Client, preferenceClient preference.Client, informerClient *informer.InformerClient) (ApiServer, error)
type DefaultApiService
    func (s *DefaultApiService) ComponentCommandPost(ctx context.Context, componentCommandPostRequest openapi.ComponentCommandPostRequest) (openapi.ImplResponse, error)
    func (s *DefaultApiService) ComponentGet(ctx context.Context) (openapi.ImplResponse, error)
    func (s *DefaultApiService) DevfileGet(ctx context.Context) (openapi.ImplResponse, error)
    func (s *DefaultApiService) DevfilePut(ctx context.Context, params openapi.DevfilePutRequest) (openapi.ImplResponse, error)
    func (s *DefaultApiService) InstanceDelete(ctx context.Context) (openapi.ImplResponse, error)
    func (s *DefaultApiService) InstanceGet(ctx context.Context) (openapi.ImplResponse, error)
    func (s *DefaultApiService) TelemetryGet(ctx context.Context) (openapi.ImplResponse, error)
type DevstateApiService
    func (s *DevstateApiService) DevstateApplyCommandCommandNamePatch(ctx context.Context, name string, patch openapi.DevstateApplyCommandCommandNamePatchRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateApplyCommandPost(ctx context.Context, command openapi.DevstateApplyCommandPostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateChartGet(context.Context) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateCommandCommandNameDelete(ctx context.Context, commandName string) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateCommandCommandNameMovePost(ctx context.Context, commandName string, params openapi.DevstateCommandCommandNameMovePostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateCommandCommandNameSetDefaultPost(ctx context.Context, commandName string, params openapi.DevstateCommandCommandNameSetDefaultPostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateCommandCommandNameUnsetDefaultPost(ctx context.Context, commandName string) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateCompositeCommandCommandNamePatch(ctx context.Context, name string, patch openapi.DevstateCompositeCommandCommandNamePatchRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateCompositeCommandPost(ctx context.Context, command openapi.DevstateCompositeCommandPostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateContainerContainerNameDelete(ctx context.Context, containerName string) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateContainerContainerNamePatch(ctx context.Context, name string, patch openapi.DevstateContainerContainerNamePatchRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateContainerPost(ctx context.Context, container openapi.DevstateContainerPostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateDevfileDelete(context.Context) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateDevfileGet(context.Context) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateDevfilePut(ctx context.Context, params openapi.DevstateDevfilePutRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateEventsPut(ctx context.Context, params openapi.DevstateEventsPutRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateExecCommandCommandNamePatch(ctx context.Context, name string, patch openapi.DevstateExecCommandCommandNamePatchRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateExecCommandPost(ctx context.Context, command openapi.DevstateExecCommandPostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateImageImageNameDelete(ctx context.Context, imageName string) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateImageImageNamePatch(ctx context.Context, name string, patch openapi.DevstateImageImageNamePatchRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateImagePost(ctx context.Context, image openapi.DevstateImagePostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateMetadataPut(ctx context.Context, metadata openapi.MetadataRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateQuantityValidPost(ctx context.Context, params openapi.DevstateQuantityValidPostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateResourcePost(ctx context.Context, resource openapi.DevstateResourcePostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateResourceResourceNameDelete(ctx context.Context, resourceName string) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateResourceResourceNamePatch(ctx context.Context, name string, patch openapi.DevstateResourceResourceNamePatchRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateVolumePost(ctx context.Context, volume openapi.DevstateVolumePostRequest) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateVolumeVolumeNameDelete(ctx context.Context, volumeName string) (openapi.ImplResponse, error)
    func (s *DevstateApiService) DevstateVolumeVolumeNamePatch(ctx context.Context, name string, patch openapi.DevstateVolumeVolumeNamePatchRequest) (openapi.ImplResponse, error)

Package files

api_default_service.go api_devstate_service.go devstate.go starterserver.go

func NewDefaultApiService

func NewDefaultApiService(
    cancel context.CancelFunc,
    pushWatcher chan<- struct{},
    kubeClient kclient.ClientInterface,
    podmanClient podman.Client,
    stateClient state.Client,
    preferenceClient preference.Client,
) openapi.DefaultApiServicer

NewDefaultApiService creates a default api service

func NewDevstateApiService

func NewDevstateApiService(
    cancel context.CancelFunc,
    pushWatcher chan<- struct{},
    kubeClient kclient.ClientInterface,
    podmanClient podman.Client,
    stateClient state.Client,
    preferenceClient preference.Client,
) openapi.DevstateApiServicer

NewDevstateApiService creates a devstate api service

type ApiServer

type ApiServer struct {
    PushWatcher <-chan struct{}
}

func StartServer

func StartServer(
    ctx context.Context,
    cancelFunc context.CancelFunc,
    randomPort bool,
    port int,
    devfilePath string,
    devfileFiles []string,
    fsys filesystem.Filesystem,
    kubernetesClient kclient.ClientInterface,
    podmanClient podman.Client,
    stateClient state.Client,
    preferenceClient preference.Client,
    informerClient *informer.InformerClient,
) (ApiServer, error)

type DefaultApiService

DefaultApiService is a service that implements the logic for the DefaultApiServicer This service should implement the business logic for every endpoint for the DefaultApi API. Include any external packages or services that will be required by this service.

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

func (*DefaultApiService) ComponentCommandPost

func (s *DefaultApiService) ComponentCommandPost(ctx context.Context, componentCommandPostRequest openapi.ComponentCommandPostRequest) (openapi.ImplResponse, error)

ComponentCommandPost -

func (*DefaultApiService) ComponentGet

func (s *DefaultApiService) ComponentGet(ctx context.Context) (openapi.ImplResponse, error)

ComponentGet -

func (*DefaultApiService) DevfileGet

func (s *DefaultApiService) DevfileGet(ctx context.Context) (openapi.ImplResponse, error)

func (*DefaultApiService) DevfilePut

func (s *DefaultApiService) DevfilePut(ctx context.Context, params openapi.DevfilePutRequest) (openapi.ImplResponse, error)

func (*DefaultApiService) InstanceDelete

func (s *DefaultApiService) InstanceDelete(ctx context.Context) (openapi.ImplResponse, error)

InstanceDelete -

func (*DefaultApiService) InstanceGet

func (s *DefaultApiService) InstanceGet(ctx context.Context) (openapi.ImplResponse, error)

InstanceGet -

func (*DefaultApiService) TelemetryGet

func (s *DefaultApiService) TelemetryGet(ctx context.Context) (openapi.ImplResponse, error)

type DevstateApiService

DevstateApiService is a service that implements the logic for the DevstateApiServicer This service should implement the business logic for every endpoint for the DevstateApi API. Include any external packages or services that will be required by this service.

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

func (*DevstateApiService) DevstateApplyCommandCommandNamePatch

func (s *DevstateApiService) DevstateApplyCommandCommandNamePatch(ctx context.Context, name string, patch openapi.DevstateApplyCommandCommandNamePatchRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateApplyCommandPost

func (s *DevstateApiService) DevstateApplyCommandPost(ctx context.Context, command openapi.DevstateApplyCommandPostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateChartGet

func (s *DevstateApiService) DevstateChartGet(context.Context) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateCommandCommandNameDelete

func (s *DevstateApiService) DevstateCommandCommandNameDelete(ctx context.Context, commandName string) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateCommandCommandNameMovePost

func (s *DevstateApiService) DevstateCommandCommandNameMovePost(ctx context.Context, commandName string, params openapi.DevstateCommandCommandNameMovePostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateCommandCommandNameSetDefaultPost

func (s *DevstateApiService) DevstateCommandCommandNameSetDefaultPost(ctx context.Context, commandName string, params openapi.DevstateCommandCommandNameSetDefaultPostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateCommandCommandNameUnsetDefaultPost

func (s *DevstateApiService) DevstateCommandCommandNameUnsetDefaultPost(ctx context.Context, commandName string) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateCompositeCommandCommandNamePatch

func (s *DevstateApiService) DevstateCompositeCommandCommandNamePatch(ctx context.Context, name string, patch openapi.DevstateCompositeCommandCommandNamePatchRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateCompositeCommandPost

func (s *DevstateApiService) DevstateCompositeCommandPost(ctx context.Context, command openapi.DevstateCompositeCommandPostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateContainerContainerNameDelete

func (s *DevstateApiService) DevstateContainerContainerNameDelete(ctx context.Context, containerName string) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateContainerContainerNamePatch

func (s *DevstateApiService) DevstateContainerContainerNamePatch(ctx context.Context, name string, patch openapi.DevstateContainerContainerNamePatchRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateContainerPost

func (s *DevstateApiService) DevstateContainerPost(ctx context.Context, container openapi.DevstateContainerPostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateDevfileDelete

func (s *DevstateApiService) DevstateDevfileDelete(context.Context) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateDevfileGet

func (s *DevstateApiService) DevstateDevfileGet(context.Context) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateDevfilePut

func (s *DevstateApiService) DevstateDevfilePut(ctx context.Context, params openapi.DevstateDevfilePutRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateEventsPut

func (s *DevstateApiService) DevstateEventsPut(ctx context.Context, params openapi.DevstateEventsPutRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateExecCommandCommandNamePatch

func (s *DevstateApiService) DevstateExecCommandCommandNamePatch(ctx context.Context, name string, patch openapi.DevstateExecCommandCommandNamePatchRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateExecCommandPost

func (s *DevstateApiService) DevstateExecCommandPost(ctx context.Context, command openapi.DevstateExecCommandPostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateImageImageNameDelete

func (s *DevstateApiService) DevstateImageImageNameDelete(ctx context.Context, imageName string) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateImageImageNamePatch

func (s *DevstateApiService) DevstateImageImageNamePatch(ctx context.Context, name string, patch openapi.DevstateImageImageNamePatchRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateImagePost

func (s *DevstateApiService) DevstateImagePost(ctx context.Context, image openapi.DevstateImagePostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateMetadataPut

func (s *DevstateApiService) DevstateMetadataPut(ctx context.Context, metadata openapi.MetadataRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateQuantityValidPost

func (s *DevstateApiService) DevstateQuantityValidPost(ctx context.Context, params openapi.DevstateQuantityValidPostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateResourcePost

func (s *DevstateApiService) DevstateResourcePost(ctx context.Context, resource openapi.DevstateResourcePostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateResourceResourceNameDelete

func (s *DevstateApiService) DevstateResourceResourceNameDelete(ctx context.Context, resourceName string) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateResourceResourceNamePatch

func (s *DevstateApiService) DevstateResourceResourceNamePatch(ctx context.Context, name string, patch openapi.DevstateResourceResourceNamePatchRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateVolumePost

func (s *DevstateApiService) DevstateVolumePost(ctx context.Context, volume openapi.DevstateVolumePostRequest) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateVolumeVolumeNameDelete

func (s *DevstateApiService) DevstateVolumeVolumeNameDelete(ctx context.Context, volumeName string) (openapi.ImplResponse, error)

func (*DevstateApiService) DevstateVolumeVolumeNamePatch

func (s *DevstateApiService) DevstateVolumeVolumeNamePatch(ctx context.Context, name string, patch openapi.DevstateVolumeVolumeNamePatchRequest) (openapi.ImplResponse, error)

Subdirectories

Name Synopsis
..
devstate
sse