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( 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 struct { PushWatcher <-chan struct{} }
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)
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 (s *DefaultApiService) ComponentCommandPost(ctx context.Context, componentCommandPostRequest openapi.ComponentCommandPostRequest) (openapi.ImplResponse, error)
ComponentCommandPost -
func (s *DefaultApiService) ComponentGet(ctx context.Context) (openapi.ImplResponse, error)
ComponentGet -
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)
InstanceDelete -
func (s *DefaultApiService) InstanceGet(ctx context.Context) (openapi.ImplResponse, error)
InstanceGet -
func (s *DefaultApiService) TelemetryGet(ctx context.Context) (openapi.ImplResponse, error)
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 (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)