...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/api.go

Documentation: github.com/redhat-developer/odo/pkg/apiserver-gen/go

     1  /*
     2   * odo dev
     3   *
     4   * API interface for 'odo dev'
     5   *
     6   * API version: 0.1
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package openapi
    11  
    12  import (
    13  	"context"
    14  	"net/http"
    15  )
    16  
    17  // DefaultApiRouter defines the required methods for binding the api requests to a responses for the DefaultApi
    18  // The DefaultApiRouter implementation should parse necessary information from the http request,
    19  // pass the data to a DefaultApiServicer to perform the required actions, then write the service results to the http response.
    20  type DefaultApiRouter interface {
    21  	ComponentCommandPost(http.ResponseWriter, *http.Request)
    22  	ComponentGet(http.ResponseWriter, *http.Request)
    23  	DevfileGet(http.ResponseWriter, *http.Request)
    24  	DevfilePut(http.ResponseWriter, *http.Request)
    25  	InstanceDelete(http.ResponseWriter, *http.Request)
    26  	InstanceGet(http.ResponseWriter, *http.Request)
    27  	TelemetryGet(http.ResponseWriter, *http.Request)
    28  }
    29  
    30  // DevstateApiRouter defines the required methods for binding the api requests to a responses for the DevstateApi
    31  // The DevstateApiRouter implementation should parse necessary information from the http request,
    32  // pass the data to a DevstateApiServicer to perform the required actions, then write the service results to the http response.
    33  type DevstateApiRouter interface {
    34  	DevstateApplyCommandCommandNamePatch(http.ResponseWriter, *http.Request)
    35  	DevstateApplyCommandPost(http.ResponseWriter, *http.Request)
    36  	DevstateChartGet(http.ResponseWriter, *http.Request)
    37  	DevstateCommandCommandNameDelete(http.ResponseWriter, *http.Request)
    38  	DevstateCommandCommandNameMovePost(http.ResponseWriter, *http.Request)
    39  	DevstateCommandCommandNameSetDefaultPost(http.ResponseWriter, *http.Request)
    40  	DevstateCommandCommandNameUnsetDefaultPost(http.ResponseWriter, *http.Request)
    41  	DevstateCompositeCommandCommandNamePatch(http.ResponseWriter, *http.Request)
    42  	DevstateCompositeCommandPost(http.ResponseWriter, *http.Request)
    43  	DevstateContainerContainerNameDelete(http.ResponseWriter, *http.Request)
    44  	DevstateContainerContainerNamePatch(http.ResponseWriter, *http.Request)
    45  	DevstateContainerPost(http.ResponseWriter, *http.Request)
    46  	DevstateDevfileDelete(http.ResponseWriter, *http.Request)
    47  	DevstateDevfileGet(http.ResponseWriter, *http.Request)
    48  	DevstateDevfilePut(http.ResponseWriter, *http.Request)
    49  	DevstateEventsPut(http.ResponseWriter, *http.Request)
    50  	DevstateExecCommandCommandNamePatch(http.ResponseWriter, *http.Request)
    51  	DevstateExecCommandPost(http.ResponseWriter, *http.Request)
    52  	DevstateImageImageNameDelete(http.ResponseWriter, *http.Request)
    53  	DevstateImageImageNamePatch(http.ResponseWriter, *http.Request)
    54  	DevstateImagePost(http.ResponseWriter, *http.Request)
    55  	DevstateMetadataPut(http.ResponseWriter, *http.Request)
    56  	DevstateQuantityValidPost(http.ResponseWriter, *http.Request)
    57  	DevstateResourcePost(http.ResponseWriter, *http.Request)
    58  	DevstateResourceResourceNameDelete(http.ResponseWriter, *http.Request)
    59  	DevstateResourceResourceNamePatch(http.ResponseWriter, *http.Request)
    60  	DevstateVolumePost(http.ResponseWriter, *http.Request)
    61  	DevstateVolumeVolumeNameDelete(http.ResponseWriter, *http.Request)
    62  	DevstateVolumeVolumeNamePatch(http.ResponseWriter, *http.Request)
    63  }
    64  
    65  // DefaultApiServicer defines the api actions for the DefaultApi service
    66  // This interface intended to stay up to date with the openapi yaml used to generate it,
    67  // while the service implementation can be ignored with the .openapi-generator-ignore file
    68  // and updated with the logic required for the API.
    69  type DefaultApiServicer interface {
    70  	ComponentCommandPost(context.Context, ComponentCommandPostRequest) (ImplResponse, error)
    71  	ComponentGet(context.Context) (ImplResponse, error)
    72  	DevfileGet(context.Context) (ImplResponse, error)
    73  	DevfilePut(context.Context, DevfilePutRequest) (ImplResponse, error)
    74  	InstanceDelete(context.Context) (ImplResponse, error)
    75  	InstanceGet(context.Context) (ImplResponse, error)
    76  	TelemetryGet(context.Context) (ImplResponse, error)
    77  }
    78  
    79  // DevstateApiServicer defines the api actions for the DevstateApi service
    80  // This interface intended to stay up to date with the openapi yaml used to generate it,
    81  // while the service implementation can be ignored with the .openapi-generator-ignore file
    82  // and updated with the logic required for the API.
    83  type DevstateApiServicer interface {
    84  	DevstateApplyCommandCommandNamePatch(context.Context, string, DevstateApplyCommandCommandNamePatchRequest) (ImplResponse, error)
    85  	DevstateApplyCommandPost(context.Context, DevstateApplyCommandPostRequest) (ImplResponse, error)
    86  	DevstateChartGet(context.Context) (ImplResponse, error)
    87  	DevstateCommandCommandNameDelete(context.Context, string) (ImplResponse, error)
    88  	DevstateCommandCommandNameMovePost(context.Context, string, DevstateCommandCommandNameMovePostRequest) (ImplResponse, error)
    89  	DevstateCommandCommandNameSetDefaultPost(context.Context, string, DevstateCommandCommandNameSetDefaultPostRequest) (ImplResponse, error)
    90  	DevstateCommandCommandNameUnsetDefaultPost(context.Context, string) (ImplResponse, error)
    91  	DevstateCompositeCommandCommandNamePatch(context.Context, string, DevstateCompositeCommandCommandNamePatchRequest) (ImplResponse, error)
    92  	DevstateCompositeCommandPost(context.Context, DevstateCompositeCommandPostRequest) (ImplResponse, error)
    93  	DevstateContainerContainerNameDelete(context.Context, string) (ImplResponse, error)
    94  	DevstateContainerContainerNamePatch(context.Context, string, DevstateContainerContainerNamePatchRequest) (ImplResponse, error)
    95  	DevstateContainerPost(context.Context, DevstateContainerPostRequest) (ImplResponse, error)
    96  	DevstateDevfileDelete(context.Context) (ImplResponse, error)
    97  	DevstateDevfileGet(context.Context) (ImplResponse, error)
    98  	DevstateDevfilePut(context.Context, DevstateDevfilePutRequest) (ImplResponse, error)
    99  	DevstateEventsPut(context.Context, DevstateEventsPutRequest) (ImplResponse, error)
   100  	DevstateExecCommandCommandNamePatch(context.Context, string, DevstateExecCommandCommandNamePatchRequest) (ImplResponse, error)
   101  	DevstateExecCommandPost(context.Context, DevstateExecCommandPostRequest) (ImplResponse, error)
   102  	DevstateImageImageNameDelete(context.Context, string) (ImplResponse, error)
   103  	DevstateImageImageNamePatch(context.Context, string, DevstateImageImageNamePatchRequest) (ImplResponse, error)
   104  	DevstateImagePost(context.Context, DevstateImagePostRequest) (ImplResponse, error)
   105  	DevstateMetadataPut(context.Context, MetadataRequest) (ImplResponse, error)
   106  	DevstateQuantityValidPost(context.Context, DevstateQuantityValidPostRequest) (ImplResponse, error)
   107  	DevstateResourcePost(context.Context, DevstateResourcePostRequest) (ImplResponse, error)
   108  	DevstateResourceResourceNameDelete(context.Context, string) (ImplResponse, error)
   109  	DevstateResourceResourceNamePatch(context.Context, string, DevstateResourceResourceNamePatchRequest) (ImplResponse, error)
   110  	DevstateVolumePost(context.Context, DevstateVolumePostRequest) (ImplResponse, error)
   111  	DevstateVolumeVolumeNameDelete(context.Context, string) (ImplResponse, error)
   112  	DevstateVolumeVolumeNamePatch(context.Context, string, DevstateVolumeVolumeNamePatchRequest) (ImplResponse, error)
   113  }
   114  

View as plain text