Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2020 Changes in this version + const BuildTime + const ContentTypeTextPlain + const GitBranch + const GitCommit + const GitTag + const RequestHeaderKey + var EmptyString = errors.New("string is empty") + var NullError = errors.New("unexpected null value") + var TypeError = errors.New("unexpected type") + func CreateHttpContext(header http.Header) context.Context + func JSON(r io.Reader, v interface{}, required bool) (err error) + func NewHTTPStatusCodeError(status int) xHTTPError + type ActivateViewsSet200Response struct + func (r *ActivateViewsSet200Response) StatusCode() int + type ActivateViewsSet403Response struct + func (r *ActivateViewsSet403Response) StatusCode() int + type ActivateViewsSet404Response struct + func (r *ActivateViewsSet404Response) StatusCode() int + type ActivateViewsSetRequest struct + ClientId string + ViewsId string + XAuth string + type ActivateViewsSetResponse interface + StatusCode func() int + type Address struct + City string + Country string + HouseNumber string + PostalCode string + Region string + Street string + type BasicTypes struct + Boolean bool + Integer int64 + Map map[string]string + Number float64 + Slice []string + String string + type Booking struct + BookingID *string + type Client struct + ActivePresets *string + Configuration Object1 + Id string + Name string + type Code200Response struct + Body string + func (r *Code200Response) StatusCode() int + type Code400Response struct + func (r *Code400Response) StatusCode() int + type Code401Response struct + func (r *Code401Response) StatusCode() int + type Code404Response struct + func (r *Code404Response) StatusCode() int + type Code500Response struct + func (r *Code500Response) StatusCode() int + type CodeRequest struct + Code string + ResponseMode *string + Session string + State []int64 + type CodeResponse interface + StatusCode func() int + type ComponentTypes string + const ComponentTypesLINES + const ComponentTypesPACKAGES + const ComponentTypesPAINTS + const ComponentTypesSPECIALEDITION + const ComponentTypesSPECIALEQUIPMENT + const ComponentTypesTRIMS + const ComponentTypesUPHOLSTERIES + const ComponentTypesWHEELS + type CreateCustomerSession201Response struct + Body Session + func (r *CreateCustomerSession201Response) StatusCode() int + type CreateCustomerSession401Response struct + func (r *CreateCustomerSession401Response) StatusCode() int + type CreateCustomerSession403Response struct + func (r *CreateCustomerSession403Response) StatusCode() int + type CreateCustomerSession422Response struct + Body ValidationErrors + func (r *CreateCustomerSession422Response) StatusCode() int + type CreateCustomerSession500Response struct + func (r *CreateCustomerSession500Response) StatusCode() int + type CreateCustomerSessionRequest struct + Code string + Locale *string + XRequestID *string + type CreateCustomerSessionResponse interface + StatusCode func() int + type CreateOrUpdateClient200Response struct + func (r *CreateOrUpdateClient200Response) StatusCode() int + type CreateOrUpdateClient201Response struct + func (r *CreateOrUpdateClient201Response) StatusCode() int + type CreateOrUpdateClient400Response struct + func (r *CreateOrUpdateClient400Response) StatusCode() int + type CreateOrUpdateClient403Response struct + func (r *CreateOrUpdateClient403Response) StatusCode() int + type CreateOrUpdateClient405Response struct + func (r *CreateOrUpdateClient405Response) StatusCode() int + type CreateOrUpdateClientRequest struct + Body Client + ClientId string + XAuth string + type CreateOrUpdateClientResponse interface + StatusCode func() int + type CreateOrUpdateUser200Response struct + func (r *CreateOrUpdateUser200Response) StatusCode() int + type CreateOrUpdateUser201Response struct + func (r *CreateOrUpdateUser201Response) StatusCode() int + type CreateOrUpdateUser400Response struct + func (r *CreateOrUpdateUser400Response) StatusCode() int + type CreateOrUpdateUser403Response struct + func (r *CreateOrUpdateUser403Response) StatusCode() int + type CreateOrUpdateUser405Response struct + func (r *CreateOrUpdateUser405Response) StatusCode() int + type CreateOrUpdateUserRequest struct + AllKeys *bool + Body User + UserId string + XAuth string + type CreateOrUpdateUserResponse interface + StatusCode func() int + type CreateOrUpdateViewsSet200Response struct + func (r *CreateOrUpdateViewsSet200Response) StatusCode() int + type CreateOrUpdateViewsSet201Response struct + func (r *CreateOrUpdateViewsSet201Response) StatusCode() int + type CreateOrUpdateViewsSet400Response struct + func (r *CreateOrUpdateViewsSet400Response) StatusCode() int + type CreateOrUpdateViewsSet403Response struct + func (r *CreateOrUpdateViewsSet403Response) StatusCode() int + type CreateOrUpdateViewsSet405Response struct + func (r *CreateOrUpdateViewsSet405Response) StatusCode() int + type CreateOrUpdateViewsSetRequest struct + Body ViewsSet + ClientId string + ViewsId string + XAuth string + type CreateOrUpdateViewsSetResponse interface + StatusCode func() int + type CreateSession200Response struct + XAuth string + func (r *CreateSession200Response) StatusCode() int + type CreateSession400Response struct + Body ValidationErrors + func (r *CreateSession400Response) StatusCode() int + type CreateSession401Response struct + func (r *CreateSession401Response) StatusCode() int + type CreateSessionRequest struct + Body Object2 + type CreateSessionResponse interface + StatusCode func() int + type DeleteClient200Response struct + func (r *DeleteClient200Response) StatusCode() int + type DeleteClient403Response struct + func (r *DeleteClient403Response) StatusCode() int + type DeleteClient404Response struct + func (r *DeleteClient404Response) StatusCode() int + type DeleteClientRequest struct + ClientId string + XAuth string + type DeleteClientResponse interface + StatusCode func() int + type DeleteCustomerSession204Response struct + func (r *DeleteCustomerSession204Response) StatusCode() int + type DeleteCustomerSession401Response struct + func (r *DeleteCustomerSession401Response) StatusCode() int + type DeleteCustomerSession500Response struct + func (r *DeleteCustomerSession500Response) StatusCode() int + type DeleteCustomerSessionRequest struct + XRequestID *string + XSessionID string + type DeleteCustomerSessionResponse interface + StatusCode func() int + type DeleteUser200Response struct + func (r *DeleteUser200Response) StatusCode() int + type DeleteUser403Response struct + func (r *DeleteUser403Response) StatusCode() int + type DeleteUser404Response struct + func (r *DeleteUser404Response) StatusCode() int + type DeleteUserRequest struct + AllKeys *bool + UserId string + XAuth string + type DeleteUserResponse interface + StatusCode func() int + type DeleteViewsSet200Response struct + func (r *DeleteViewsSet200Response) StatusCode() int + type DeleteViewsSet403Response struct + func (r *DeleteViewsSet403Response) StatusCode() int + type DeleteViewsSet404Response struct + func (r *DeleteViewsSet404Response) StatusCode() int + type DeleteViewsSetRequest struct + ClientId string + ViewsId string + XAuth string + type DeleteViewsSetResponse interface + StatusCode func() int + type DestroySession200Response struct + func (r *DestroySession200Response) StatusCode() int + type DestroySession404Response struct + func (r *DestroySession404Response) StatusCode() int + type DestroySessionRequest struct + XAuth string + type DestroySessionResponse interface + StatusCode func() int + type DownloadFile200Response struct + Body io.ReadCloser + ContentType string + func (r *DownloadFile200Response) StatusCode() int + type DownloadFileRequest struct + File string + type DownloadFileResponse interface + StatusCode func() int + type DownloadImage200Response struct + Body io.ReadCloser + ContentType string + func (r *DownloadImage200Response) StatusCode() int + type DownloadImage500Response struct + func (r *DownloadImage500Response) StatusCode() int + type DownloadImageRequest struct + Image string + type DownloadImageResponse interface + StatusCode func() int + type DownloadNestedFile200Response struct + Body NestedFileStructure + func (r *DownloadNestedFile200Response) StatusCode() int + type DownloadNestedFileRequest struct + type DownloadNestedFileResponse interface + StatusCode func() int + type DriveConcept string + const DriveConceptCOMBUSTOR + const DriveConceptELECTRIC + const DriveConceptFUELCELL + const DriveConceptHYBRID + const DriveConceptUNDEFINED + type EmptySlice struct + EmptySlice []Price + type ErrorHandler func(v ...interface{}) + type GenericFileDownload200Response struct + Body io.ReadCloser + ContentType string + Pragma string + func (r *GenericFileDownload200Response) StatusCode() int + type GenericFileDownload500Response struct + func (r *GenericFileDownload500Response) StatusCode() int + type GenericFileDownloadRequest struct + Ext string + type GenericFileDownloadResponse interface + StatusCode func() int + type GetBooking200Response struct + Body string + func (r *GetBooking200Response) StatusCode() int + type GetBooking400Response struct + func (r *GetBooking400Response) StatusCode() int + type GetBooking401Response struct + func (r *GetBooking401Response) StatusCode() int + type GetBooking404Response struct + func (r *GetBooking404Response) StatusCode() int + type GetBooking500Response struct + func (r *GetBooking500Response) StatusCode() int + type GetBookingRequest struct + XSessionID string + type GetBookingResponse interface + StatusCode func() int + type GetBookings200Response struct + Body []Booking + func (r *GetBookings200Response) StatusCode() int + type GetBookings400Response struct + func (r *GetBookings400Response) StatusCode() int + type GetBookings401Response struct + func (r *GetBookings401Response) StatusCode() int + type GetBookings404Response struct + func (r *GetBookings404Response) StatusCode() int + type GetBookings500Response struct + func (r *GetBookings500Response) StatusCode() int + type GetBookingsRequest struct + Date *string + Ids []int64 + XSessionID string + type GetBookingsResponse interface + StatusCode func() int + type GetClasses200Response struct + Body string + func (r *GetClasses200Response) StatusCode() int + type GetClasses400Response struct + Body string + func (r *GetClasses400Response) StatusCode() int + type GetClassesRequest struct + ComponentTypes []ComponentTypes + ProductGroup ProductGroup + type GetClassesResponse interface + StatusCode func() int + type GetClient200Response struct + Body Client + func (r *GetClient200Response) StatusCode() int + type GetClient403Response struct + func (r *GetClient403Response) StatusCode() int + type GetClient404Response struct + func (r *GetClient404Response) StatusCode() int + type GetClientRequest struct + ClientId string + XAuth string + type GetClientResponse interface + StatusCode func() int + type GetClients200Response struct + Body []Client + func (r *GetClients200Response) StatusCode() int + type GetClients204Response struct + func (r *GetClients204Response) StatusCode() int + type GetClients403Response struct + func (r *GetClients403Response) StatusCode() int + type GetClientsRequest struct + XAuth string + type GetClientsResponse interface + StatusCode func() int + type GetPermissions200Response struct + Body []string + func (r *GetPermissions200Response) StatusCode() int + type GetPermissions403Response struct + func (r *GetPermissions403Response) StatusCode() int + type GetPermissionsRequest struct + XAuth string + type GetPermissionsResponse interface + StatusCode func() int + type GetRental200Response struct + func (r *GetRental200Response) StatusCode() int + type GetRental400Response struct + Body ValidationErrors + func (r *GetRental400Response) StatusCode() int + type GetRentalRequest struct + Body Rental + type GetRentalResponse interface + StatusCode func() int + type GetShoes200Response struct + Body Shoes + func (r *GetShoes200Response) StatusCode() int + type GetShoesRequest struct + type GetShoesResponse interface + StatusCode func() int + type GetUser200Response struct + Body User + func (r *GetUser200Response) StatusCode() int + type GetUser403Response struct + func (r *GetUser403Response) StatusCode() int + type GetUser404Response struct + func (r *GetUser404Response) StatusCode() int + type GetUserInfo200Response struct + Body User + func (r *GetUserInfo200Response) StatusCode() int + type GetUserInfo400Response struct + Body ValidationErrors + func (r *GetUserInfo400Response) StatusCode() int + type GetUserInfo403Response struct + func (r *GetUserInfo403Response) StatusCode() int + type GetUserInfoRequest struct + SubID *int64 + XAuth string + type GetUserInfoResponse interface + StatusCode func() int + type GetUserRequest struct + AllKeys *bool + UserId string + XAuth string + type GetUserResponse interface + StatusCode func() int + type GetUsers200Response struct + Body []User + func (r *GetUsers200Response) StatusCode() int + type GetUsers403Response struct + func (r *GetUsers403Response) StatusCode() int + type GetUsersRequest struct + XAuth string + type GetUsersResponse interface + StatusCode func() int + type GetViewsSet200Response struct + Body ViewsSet + func (r *GetViewsSet200Response) StatusCode() int + type GetViewsSet403Response struct + func (r *GetViewsSet403Response) StatusCode() int + type GetViewsSet404Response struct + func (r *GetViewsSet404Response) StatusCode() int + type GetViewsSetRequest struct + ClientId string + Page string + ViewsId string + XAuth string + type GetViewsSetResponse interface + StatusCode func() int + type GetViewsSets200Response struct + Body []ViewsSet + func (r *GetViewsSets200Response) StatusCode() int + type GetViewsSets403Response struct + func (r *GetViewsSets403Response) StatusCode() int + type GetViewsSetsRequest struct + ClientId string + XAuth string + type GetViewsSetsResponse interface + StatusCode func() int + type HooksClient struct + OnUnknownResponseCode func(response *http.Response, request *http.Request) string + func DevHook() HooksClient + type HttpContext interface + GetHTTPRequestHeaders func() (http.Header, bool) + type HttpJsonError struct + Message interface{} + func (e *HttpJsonError) Error() string + func (e *HttpJsonError) StatusCode() int + type Link struct + Href string + type Links struct + Self Link + type ListElements200Response struct + Body string + XTotalCount int64 + func (r *ListElements200Response) StatusCode() int + type ListElements500Response struct + func (r *ListElements500Response) StatusCode() int + type ListElementsRequest struct + Page *int64 + PerPage *int64 + type ListElementsResponse interface + StatusCode func() int + type ListModels200Response struct + Body []Model + func (r *ListModels200Response) StatusCode() int + type ListModelsRequest struct + BrandId string + ClassId *string + DriveConcept *DriveConcept + Ids []int64 + LanguageId *string + LineId *string + type ListModelsResponse interface + StatusCode func() int + type Middleware struct + After bool + Handler routing.Handler + type MimeFile struct + Content io.ReadCloser + Header *multipart.FileHeader + type Model struct + DriveConcept *DriveConcept + Price Price + TechnicalInformation TechnicalInformation + type NestedFileStructure struct + Data *string + type NewRequest func(string, io.Reader) (*http.Request, error) + type Object1 struct + BbdCEBaseUrl *string + BbdCallerIdentifier *string + BbdDataSupply *string + BbdImageBackground *string + BbdImagePerspective *string + BbdImageType *string + BbdPassword *string + BbdProductGroup *string + BbdSoapMediaProviderUrl *string + BbdUser *string + CcoreServiceUrl *string + CryptKeys []string + HealConfigurations *bool + type Object2 struct + Id string + Password string + type Opts struct + Ctx context.Context + Hooks HooksClient + type PostUpload200Response struct + func (r *PostUpload200Response) StatusCode() int + type PostUpload500Response struct + func (r *PostUpload500Response) StatusCode() int + type PostUploadRequest struct + FormData PostUploadRequestFormData + type PostUploadRequestFormData struct + Note *string + Upfile *MimeFile + type PostUploadResponse interface + StatusCode func() int + type Price struct + Currency string + Value float64 + type ProductGroup string + const ProductGroupCITAN + const ProductGroupGELAENDEWAGEN + const ProductGroupPKW + const ProductGroupSMART + const ProductGroupSPRINTER + const ProductGroupVAN + type PrometheusHandler struct + func NewPrometheusHandler(namespace *string) *PrometheusHandler + func (h *PrometheusHandler) HandleRequest(path, method string, status int, duration time.Duration) + func (h *PrometheusHandler) InitMetric(path, method string) + type Rental struct + Class string + Color *string + HomeID *string + Id string + IdOptional *string + LockStatus int32 + MaxDoors int64 + MinDoors int64 + OptionalInt *int64 + State *int64 + StationID string + Status int64 + Valid *string + Website string + WebsiteOptional *string + type RouteDescription struct + Handler routing.Handler + Method string + Middleware []Middleware + Path string + type Server struct + ErrorLogger func(v ...interface{}) + OnStart func(router *routing.Router) + Router *routing.Router + SwaggerSpec string + func (server *Server) Start(port int, routes []RouteDescription) error + func (server *Server) Stop() error + type ServerOpts struct + ErrorHandler ErrorHandler + Middleware []Middleware + OnStart func(router *routing.Router) + type Session struct + Registered bool + Token string + type Shoe struct + Color string + Links Links + Name string + Size float64 + type Shoes struct + Embedded ShoesEmbedded + Id string + Links Links + type ShoesEmbedded struct + ShopShoes []Shoe + type ShowVehicleInView200Response struct + func (r *ShowVehicleInView200Response) StatusCode() int + type ShowVehicleInView403Response struct + func (r *ShowVehicleInView403Response) StatusCode() int + type ShowVehicleInView404Response struct + func (r *ShowVehicleInView404Response) StatusCode() int + type ShowVehicleInViewRequest struct + Breakpoint string + ClientId string + Spec string + View string + ViewsId string + XAuth string + type ShowVehicleInViewResponse interface + StatusCode func() int + type TechnicalInformation struct + Transmission string + type User struct + Address []Address + Email *string + GrantedProtocolMappers map[string]string + Id string + Password string + Permissions []string + type ValidationError struct + Code *string + Field *string + Message *string + type ValidationErrorObject struct + Code string + Field string + Message string + type ValidationErrors struct + Errors []ValidationError + Message *string + type ValidationErrorsObject struct + Errors []ValidationErrorObject + Message string + type Validator struct + func NewValidation() *Validator + func (v *Validator) ValidateRequest(request interface{}) (*ValidationErrorsObject, error) + type VersionInfo struct + BuildTime string + GitBranch string + GitCommit string + GitTag string + GoVersion string + func ApikitVersion() *VersionInfo + func (vi *VersionInfo) PrintTable() error + type ViewsSet struct + Id string + Name *string + Views *string + type VisAdminClientMock struct + ActivateViewsSetStatusCode int + CodeStatusCode int + CreateCustomerSessionStatusCode int + CreateOrUpdateClientStatusCode int + CreateOrUpdateUserStatusCode int + CreateOrUpdateViewsSetStatusCode int + CreateSessionStatusCode int + DeleteClientStatusCode int + DeleteCustomerSessionStatusCode int + DeleteUserStatusCode int + DeleteViewsSetStatusCode int + DestroySessionStatusCode int + DownloadFileStatusCode int + DownloadImageStatusCode int + DownloadNestedFileStatusCode int + GenericFileDownloadStatusCode int + GetBookingStatusCode int + GetBookingsStatusCode int + GetClassesStatusCode int + GetClientStatusCode int + GetClientsStatusCode int + GetPermissionsStatusCode int + GetRentalStatusCode int + GetUserInfoStatusCode int + GetUserStatusCode int + GetUsersStatusCode int + GetViewsSetStatusCode int + GetViewsSetsStatusCode int + ListElementsStatusCode int + ListModelsStatusCode int + PostUploadStatusCode int + ShowVehicleInViewStatusCode int + func NewVisAdminClientMock(httpClient *http.Client, baseUrl string, ctx ...context.Context) *VisAdminClientMock + func (client *VisAdminClientMock) ActivateViewsSet(request *ActivateViewsSetRequest) (ActivateViewsSetResponse, error) + func (client *VisAdminClientMock) Code(request *CodeRequest) (CodeResponse, error) + func (client *VisAdminClientMock) CreateCustomerSession(request *CreateCustomerSessionRequest) (CreateCustomerSessionResponse, error) + func (client *VisAdminClientMock) CreateOrUpdateClient(request *CreateOrUpdateClientRequest) (CreateOrUpdateClientResponse, error) + func (client *VisAdminClientMock) CreateOrUpdateUser(request *CreateOrUpdateUserRequest) (CreateOrUpdateUserResponse, error) + func (client *VisAdminClientMock) CreateOrUpdateViewsSet(request *CreateOrUpdateViewsSetRequest) (CreateOrUpdateViewsSetResponse, error) + func (client *VisAdminClientMock) CreateSession(request *CreateSessionRequest) (CreateSessionResponse, error) + func (client *VisAdminClientMock) DeleteClient(request *DeleteClientRequest) (DeleteClientResponse, error) + func (client *VisAdminClientMock) DeleteCustomerSession(request *DeleteCustomerSessionRequest) (DeleteCustomerSessionResponse, error) + func (client *VisAdminClientMock) DeleteUser(request *DeleteUserRequest) (DeleteUserResponse, error) + func (client *VisAdminClientMock) DeleteViewsSet(request *DeleteViewsSetRequest) (DeleteViewsSetResponse, error) + func (client *VisAdminClientMock) DestroySession(request *DestroySessionRequest) (DestroySessionResponse, error) + func (client *VisAdminClientMock) DownloadFile(request *DownloadFileRequest) (DownloadFileResponse, error) + func (client *VisAdminClientMock) DownloadImage(request *DownloadImageRequest) (DownloadImageResponse, error) + func (client *VisAdminClientMock) DownloadNestedFile(request *DownloadNestedFileRequest) (DownloadNestedFileResponse, error) + func (client *VisAdminClientMock) GenericFileDownload(request *GenericFileDownloadRequest) (GenericFileDownloadResponse, error) + func (client *VisAdminClientMock) GetBooking(request *GetBookingRequest) (GetBookingResponse, error) + func (client *VisAdminClientMock) GetBookings(request *GetBookingsRequest) (GetBookingsResponse, error) + func (client *VisAdminClientMock) GetClasses(request *GetClassesRequest) (GetClassesResponse, error) + func (client *VisAdminClientMock) GetClient(request *GetClientRequest) (GetClientResponse, error) + func (client *VisAdminClientMock) GetClients(request *GetClientsRequest) (GetClientsResponse, error) + func (client *VisAdminClientMock) GetPermissions(request *GetPermissionsRequest) (GetPermissionsResponse, error) + func (client *VisAdminClientMock) GetRental(request *GetRentalRequest) (GetRentalResponse, error) + func (client *VisAdminClientMock) GetUser(request *GetUserRequest) (GetUserResponse, error) + func (client *VisAdminClientMock) GetUserInfo(request *GetUserInfoRequest) (GetUserInfoResponse, error) + func (client *VisAdminClientMock) GetUsers(request *GetUsersRequest) (GetUsersResponse, error) + func (client *VisAdminClientMock) GetViewsSet(request *GetViewsSetRequest) (GetViewsSetResponse, error) + func (client *VisAdminClientMock) GetViewsSets(request *GetViewsSetsRequest) (GetViewsSetsResponse, error) + func (client *VisAdminClientMock) ListElements(request *ListElementsRequest) (ListElementsResponse, error) + func (client *VisAdminClientMock) ListModels(request *ListModelsRequest) (ListModelsResponse, error) + func (client *VisAdminClientMock) PostUpload(request *PostUploadRequest) (PostUploadResponse, error) + func (client *VisAdminClientMock) ShowVehicleInView(request *ShowVehicleInViewRequest) (ShowVehicleInViewResponse, error)