Versions in this module Expand all Collapse all v2 v2.0.1 Nov 7, 2022 v2.0.0 Nov 7, 2022 Changes in this version + var ContextAPIKeys = contextKey("apiKeys") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextHttpSignatureAuth = contextKey("httpsignature") + var ContextOAuth2 = contextKey("token") + var ContextOperationServerIndices = contextKey("serverOperationIndices") + var ContextOperationServerVariables = contextKey("serverOperationVariables") + var ContextServerIndex = contextKey("serverIndex") + var ContextServerVariables = contextKey("serverVariables") + func CacheExpires(r *http.Response) time.Time + func PtrBool(v bool) *bool + func PtrFloat32(v float32) *float32 + func PtrFloat64(v float64) *float64 + func PtrInt(v int) *int + func PtrInt32(v int32) *int32 + func PtrInt64(v int64) *int64 + func PtrString(v string) *string + func PtrTime(v time.Time) *time.Time + type APIClient struct + ContentApi *ContentApiService + ExtractApi *ExtractApiService + MetadataApi *MetadataApiService + SourceCodeExtractApi *SourceCodeExtractApiService + ValidationApi *ValidationApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type ActionResponse struct + CompletedAt time.Time + Links *map[string]string + RequestedAt *time.Time + StartedAt time.Time + Status string + func NewActionResponse(status string, startedAt time.Time, completedAt time.Time) *ActionResponse + func NewActionResponseWithDefaults() *ActionResponse + func (o *ActionResponse) GetCompletedAt() time.Time + func (o *ActionResponse) GetCompletedAtOk() (*time.Time, bool) + func (o *ActionResponse) GetLinks() map[string]string + func (o *ActionResponse) GetLinksOk() (*map[string]string, bool) + func (o *ActionResponse) GetRequestedAt() time.Time + func (o *ActionResponse) GetRequestedAtOk() (*time.Time, bool) + func (o *ActionResponse) GetStartedAt() time.Time + func (o *ActionResponse) GetStartedAtOk() (*time.Time, bool) + func (o *ActionResponse) GetStatus() string + func (o *ActionResponse) GetStatusOk() (*string, bool) + func (o *ActionResponse) HasLinks() bool + func (o *ActionResponse) HasRequestedAt() bool + func (o *ActionResponse) SetCompletedAt(v time.Time) + func (o *ActionResponse) SetLinks(v map[string]string) + func (o *ActionResponse) SetRequestedAt(v time.Time) + func (o *ActionResponse) SetStartedAt(v time.Time) + func (o *ActionResponse) SetStatus(v string) + func (o ActionResponse) MarshalJSON() ([]byte, error) + type ApiContentArchiveRequest struct + ApiService *ContentApiService + func (r ApiContentArchiveRequest) Execute() (*http.Response, error) + type ApiContentCreateRequest struct + ApiService *ContentApiService + func (r ApiContentCreateRequest) Execute() (*AssetFileMetadata, *http.Response, error) + func (r ApiContentCreateRequest) File(file *os.File) ApiContentCreateRequest + type ApiContentGetRequest struct + ApiService *ContentApiService + func (r ApiContentGetRequest) Execute() (*Error, *http.Response, error) + type ApiContentReplaceRequest struct + ApiService *ContentApiService + func (r ApiContentReplaceRequest) Execute() (*AssetFileMetadata, *http.Response, error) + func (r ApiContentReplaceRequest) File(file *os.File) ApiContentReplaceRequest + type ApiExtractAsyncRequest struct + ApiService *SourceCodeExtractApiService + func (r ApiExtractAsyncRequest) Execute() (*TaskLocator, *http.Response, error) + func (r ApiExtractAsyncRequest) FileExtractRequest(fileExtractRequest FileExtractRequest) ApiExtractAsyncRequest + type ApiExtractByPathRequest struct + ApiService *ExtractApiService + func (r ApiExtractByPathRequest) Execute() (*http.Response, error) + type ApiExtractGetAsyncStatusRequest struct + ApiService *SourceCodeExtractApiService + func (r ApiExtractGetAsyncStatusRequest) Execute() (*ActionResponse, *http.Response, error) + type ApiMetadataGetRequest struct + ApiService *MetadataApiService + func (r ApiMetadataGetRequest) Execute() (*AssetFileMetadata, *http.Response, error) + type ApiValidateRequest struct + ApiService *ValidationApiService + func (r ApiValidateRequest) Execute() (*Error, *http.Response, error) + func (r ApiValidateRequest) File(file *os.File) ApiValidateRequest + type AssetFileMetadata struct + ArchivedAt *int64 + Children []string + CreatedAt int32 + Folder bool + Id string + Name string + UpdatedAt int32 + func NewAssetFileMetadata(id string, name string, folder bool, updatedAt int32, createdAt int32) *AssetFileMetadata + func NewAssetFileMetadataWithDefaults() *AssetFileMetadata + func (o *AssetFileMetadata) GetArchivedAt() int64 + func (o *AssetFileMetadata) GetArchivedAtOk() (*int64, bool) + func (o *AssetFileMetadata) GetChildren() []string + func (o *AssetFileMetadata) GetChildrenOk() ([]string, bool) + func (o *AssetFileMetadata) GetCreatedAt() int32 + func (o *AssetFileMetadata) GetCreatedAtOk() (*int32, bool) + func (o *AssetFileMetadata) GetFolder() bool + func (o *AssetFileMetadata) GetFolderOk() (*bool, bool) + func (o *AssetFileMetadata) GetId() string + func (o *AssetFileMetadata) GetIdOk() (*string, bool) + func (o *AssetFileMetadata) GetName() string + func (o *AssetFileMetadata) GetNameOk() (*string, bool) + func (o *AssetFileMetadata) GetUpdatedAt() int32 + func (o *AssetFileMetadata) GetUpdatedAtOk() (*int32, bool) + func (o *AssetFileMetadata) HasArchivedAt() bool + func (o *AssetFileMetadata) HasChildren() bool + func (o *AssetFileMetadata) SetArchivedAt(v int64) + func (o *AssetFileMetadata) SetChildren(v []string) + func (o *AssetFileMetadata) SetCreatedAt(v int32) + func (o *AssetFileMetadata) SetFolder(v bool) + func (o *AssetFileMetadata) SetId(v string) + func (o *AssetFileMetadata) SetName(v string) + func (o *AssetFileMetadata) SetUpdatedAt(v int32) + func (o AssetFileMetadata) MarshalJSON() ([]byte, error) + type BasicAuth struct + Password string + UserName string + type Configuration struct + Debug bool + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + OperationServers map[string]ServerConfigurations + Scheme string + Servers ServerConfigurations + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) + func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) + type ContentApiService service + func (a *ContentApiService) ContentArchive(ctx context.Context, environment string, path string) ApiContentArchiveRequest + func (a *ContentApiService) ContentArchiveExecute(r ApiContentArchiveRequest) (*http.Response, error) + func (a *ContentApiService) ContentCreate(ctx context.Context, environment string, path string) ApiContentCreateRequest + func (a *ContentApiService) ContentCreateExecute(r ApiContentCreateRequest) (*AssetFileMetadata, *http.Response, error) + func (a *ContentApiService) ContentGet(ctx context.Context, environment string, path string) ApiContentGetRequest + func (a *ContentApiService) ContentGetExecute(r ApiContentGetRequest) (*Error, *http.Response, error) + func (a *ContentApiService) ContentReplace(ctx context.Context, environment string, path string) ApiContentReplaceRequest + func (a *ContentApiService) ContentReplaceExecute(r ApiContentReplaceRequest) (*AssetFileMetadata, *http.Response, error) + type Error struct + Category string + Context *map[string][]string + CorrelationId string + Errors []ErrorDetail + Links *map[string]string + Message string + SubCategory *string + func NewError(message string, correlationId string, category string) *Error + func NewErrorWithDefaults() *Error + func (o *Error) GetCategory() string + func (o *Error) GetCategoryOk() (*string, bool) + func (o *Error) GetContext() map[string][]string + func (o *Error) GetContextOk() (*map[string][]string, bool) + func (o *Error) GetCorrelationId() string + func (o *Error) GetCorrelationIdOk() (*string, bool) + func (o *Error) GetErrors() []ErrorDetail + func (o *Error) GetErrorsOk() ([]ErrorDetail, bool) + func (o *Error) GetLinks() map[string]string + func (o *Error) GetLinksOk() (*map[string]string, bool) + func (o *Error) GetMessage() string + func (o *Error) GetMessageOk() (*string, bool) + func (o *Error) GetSubCategory() string + func (o *Error) GetSubCategoryOk() (*string, bool) + func (o *Error) HasContext() bool + func (o *Error) HasErrors() bool + func (o *Error) HasLinks() bool + func (o *Error) HasSubCategory() bool + func (o *Error) SetCategory(v string) + func (o *Error) SetContext(v map[string][]string) + func (o *Error) SetCorrelationId(v string) + func (o *Error) SetErrors(v []ErrorDetail) + func (o *Error) SetLinks(v map[string]string) + func (o *Error) SetMessage(v string) + func (o *Error) SetSubCategory(v string) + func (o Error) MarshalJSON() ([]byte, error) + type ErrorDetail struct + Code *string + Context *map[string][]string + In *string + Message string + SubCategory *string + func NewErrorDetail(message string) *ErrorDetail + func NewErrorDetailWithDefaults() *ErrorDetail + func (o *ErrorDetail) GetCode() string + func (o *ErrorDetail) GetCodeOk() (*string, bool) + func (o *ErrorDetail) GetContext() map[string][]string + func (o *ErrorDetail) GetContextOk() (*map[string][]string, bool) + func (o *ErrorDetail) GetIn() string + func (o *ErrorDetail) GetInOk() (*string, bool) + func (o *ErrorDetail) GetMessage() string + func (o *ErrorDetail) GetMessageOk() (*string, bool) + func (o *ErrorDetail) GetSubCategory() string + func (o *ErrorDetail) GetSubCategoryOk() (*string, bool) + func (o *ErrorDetail) HasCode() bool + func (o *ErrorDetail) HasContext() bool + func (o *ErrorDetail) HasIn() bool + func (o *ErrorDetail) HasSubCategory() bool + func (o *ErrorDetail) SetCode(v string) + func (o *ErrorDetail) SetContext(v map[string][]string) + func (o *ErrorDetail) SetIn(v string) + func (o *ErrorDetail) SetMessage(v string) + func (o *ErrorDetail) SetSubCategory(v string) + func (o ErrorDetail) MarshalJSON() ([]byte, error) + type ExtractApiService service + func (a *ExtractApiService) ExtractByPath(ctx context.Context, path string) ApiExtractByPathRequest + func (a *ExtractApiService) ExtractByPathExecute(r ApiExtractByPathRequest) (*http.Response, error) + type FileExtractRequest struct + Path string + func NewFileExtractRequest(path string) *FileExtractRequest + func NewFileExtractRequestWithDefaults() *FileExtractRequest + func (o *FileExtractRequest) GetPath() string + func (o *FileExtractRequest) GetPathOk() (*string, bool) + func (o *FileExtractRequest) SetPath(v string) + func (o FileExtractRequest) MarshalJSON() ([]byte, error) + type GenericOpenAPIError struct + func (e GenericOpenAPIError) Body() []byte + func (e GenericOpenAPIError) Error() string + func (e GenericOpenAPIError) Model() interface{} + type MetadataApiService service + func (a *MetadataApiService) MetadataGet(ctx context.Context, environment string, path string) ApiMetadataGetRequest + func (a *MetadataApiService) MetadataGetExecute(r ApiMetadataGetRequest) (*AssetFileMetadata, *http.Response, error) + type NullableActionResponse struct + func NewNullableActionResponse(val *ActionResponse) *NullableActionResponse + func (v *NullableActionResponse) Set(val *ActionResponse) + func (v *NullableActionResponse) UnmarshalJSON(src []byte) error + func (v *NullableActionResponse) Unset() + func (v NullableActionResponse) Get() *ActionResponse + func (v NullableActionResponse) IsSet() bool + func (v NullableActionResponse) MarshalJSON() ([]byte, error) + type NullableAssetFileMetadata struct + func NewNullableAssetFileMetadata(val *AssetFileMetadata) *NullableAssetFileMetadata + func (v *NullableAssetFileMetadata) Set(val *AssetFileMetadata) + func (v *NullableAssetFileMetadata) UnmarshalJSON(src []byte) error + func (v *NullableAssetFileMetadata) Unset() + func (v NullableAssetFileMetadata) Get() *AssetFileMetadata + func (v NullableAssetFileMetadata) IsSet() bool + func (v NullableAssetFileMetadata) MarshalJSON() ([]byte, error) + type NullableBool struct + func NewNullableBool(val *bool) *NullableBool + func (v *NullableBool) Set(val *bool) + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v *NullableBool) Unset() + func (v NullableBool) Get() *bool + func (v NullableBool) IsSet() bool + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableError struct + func NewNullableError(val *Error) *NullableError + func (v *NullableError) Set(val *Error) + func (v *NullableError) UnmarshalJSON(src []byte) error + func (v *NullableError) Unset() + func (v NullableError) Get() *Error + func (v NullableError) IsSet() bool + func (v NullableError) MarshalJSON() ([]byte, error) + type NullableErrorDetail struct + func NewNullableErrorDetail(val *ErrorDetail) *NullableErrorDetail + func (v *NullableErrorDetail) Set(val *ErrorDetail) + func (v *NullableErrorDetail) UnmarshalJSON(src []byte) error + func (v *NullableErrorDetail) Unset() + func (v NullableErrorDetail) Get() *ErrorDetail + func (v NullableErrorDetail) IsSet() bool + func (v NullableErrorDetail) MarshalJSON() ([]byte, error) + type NullableFileExtractRequest struct + func NewNullableFileExtractRequest(val *FileExtractRequest) *NullableFileExtractRequest + func (v *NullableFileExtractRequest) Set(val *FileExtractRequest) + func (v *NullableFileExtractRequest) UnmarshalJSON(src []byte) error + func (v *NullableFileExtractRequest) Unset() + func (v NullableFileExtractRequest) Get() *FileExtractRequest + func (v NullableFileExtractRequest) IsSet() bool + func (v NullableFileExtractRequest) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + func NewNullableFloat32(val *float32) *NullableFloat32 + func (v *NullableFloat32) Set(val *float32) + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v *NullableFloat32) Unset() + func (v NullableFloat32) Get() *float32 + func (v NullableFloat32) IsSet() bool + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + func NewNullableFloat64(val *float64) *NullableFloat64 + func (v *NullableFloat64) Set(val *float64) + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v *NullableFloat64) Unset() + func (v NullableFloat64) Get() *float64 + func (v NullableFloat64) IsSet() bool + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableInt struct + func NewNullableInt(val *int) *NullableInt + func (v *NullableInt) Set(val *int) + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v *NullableInt) Unset() + func (v NullableInt) Get() *int + func (v NullableInt) IsSet() bool + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + func NewNullableInt32(val *int32) *NullableInt32 + func (v *NullableInt32) Set(val *int32) + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v *NullableInt32) Unset() + func (v NullableInt32) Get() *int32 + func (v NullableInt32) IsSet() bool + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + func NewNullableInt64(val *int64) *NullableInt64 + func (v *NullableInt64) Set(val *int64) + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v *NullableInt64) Unset() + func (v NullableInt64) Get() *int64 + func (v NullableInt64) IsSet() bool + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullableString struct + func NewNullableString(val *string) *NullableString + func (v *NullableString) Set(val *string) + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v *NullableString) Unset() + func (v NullableString) Get() *string + func (v NullableString) IsSet() bool + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTaskLocator struct + func NewNullableTaskLocator(val *TaskLocator) *NullableTaskLocator + func (v *NullableTaskLocator) Set(val *TaskLocator) + func (v *NullableTaskLocator) UnmarshalJSON(src []byte) error + func (v *NullableTaskLocator) Unset() + func (v NullableTaskLocator) Get() *TaskLocator + func (v NullableTaskLocator) IsSet() bool + func (v NullableTaskLocator) MarshalJSON() ([]byte, error) + type NullableTime struct + func NewNullableTime(val *time.Time) *NullableTime + func (v *NullableTime) Set(val *time.Time) + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v *NullableTime) Unset() + func (v NullableTime) Get() *time.Time + func (v NullableTime) IsSet() bool + func (v NullableTime) MarshalJSON() ([]byte, error) + type ServerConfiguration struct + Description string + URL string + Variables map[string]ServerVariable + type ServerConfigurations []ServerConfiguration + func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) + type ServerVariable struct + DefaultValue string + Description string + EnumValues []string + type SourceCodeExtractApiService service + func (a *SourceCodeExtractApiService) ExtractAsync(ctx context.Context) ApiExtractAsyncRequest + func (a *SourceCodeExtractApiService) ExtractAsyncExecute(r ApiExtractAsyncRequest) (*TaskLocator, *http.Response, error) + func (a *SourceCodeExtractApiService) ExtractGetAsyncStatus(ctx context.Context, taskId int32) ApiExtractGetAsyncStatusRequest + func (a *SourceCodeExtractApiService) ExtractGetAsyncStatusExecute(r ApiExtractGetAsyncStatusRequest) (*ActionResponse, *http.Response, error) + type TaskLocator struct + Id string + Links *map[string]string + func NewTaskLocator(id string) *TaskLocator + func NewTaskLocatorWithDefaults() *TaskLocator + func (o *TaskLocator) GetId() string + func (o *TaskLocator) GetIdOk() (*string, bool) + func (o *TaskLocator) GetLinks() map[string]string + func (o *TaskLocator) GetLinksOk() (*map[string]string, bool) + func (o *TaskLocator) HasLinks() bool + func (o *TaskLocator) SetId(v string) + func (o *TaskLocator) SetLinks(v map[string]string) + func (o TaskLocator) MarshalJSON() ([]byte, error) + type ValidationApiService service + func (a *ValidationApiService) Validate(ctx context.Context, path string) ApiValidateRequest + func (a *ValidationApiService) ValidateExecute(r ApiValidateRequest) (*Error, *http.Response, error)