Documentation
¶
Overview ¶
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type CreateDirectoryJSONRequestBody
- type CreateDirectoryRequest
- type CreateRootDirectoryJSONRequestBody
- type Directory
- type DirectoryEvent
- type DirectoryFetch
- type DirectoryID
- type DirectoryList
- type DirectoryMetadata
- type DirectoryRequestMeta
- type Error
- type EventType
- type GetDirectoryParams
- type ListChildrenParams
- type ListParentsParams
- type ListParentsUntilParams
- type ListRootsParams
- type NewDirectory
- type UpdateDirectoryJSONRequestBody
- type UpdateDirectoryRequest
- type WithDeleted
Constants ¶
const APIVersion = "v1"
const (
// EventSubject is the subject that events are published to.
EventSubject = "directories"
)
Variables ¶
var ErrParsingID = errors.New("error parsing id")
Functions ¶
func GetSwagger ¶ added in v0.0.8
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
Types ¶
type CreateDirectoryJSONRequestBody ¶ added in v0.0.8
type CreateDirectoryJSONRequestBody = CreateDirectoryRequest
CreateDirectoryJSONRequestBody defines body for CreateDirectory for application/json ContentType.
type CreateDirectoryRequest ¶
type CreateDirectoryRequest struct { Metadata *DirectoryMetadata `json:"metadata,omitempty"` Name string `binding:"required" json:"name"` Version string `json:"version"` }
CreateDirectoryRequest defines model for CreateDirectoryRequest.
type CreateRootDirectoryJSONRequestBody ¶ added in v0.0.8
type CreateRootDirectoryJSONRequestBody = CreateDirectoryRequest
CreateRootDirectoryJSONRequestBody defines body for CreateRootDirectory for application/json ContentType.
type Directory ¶
type Directory struct { CreatedAt time.Time `json:"createdAt"` DeletedAt *time.Time `json:"deletedAt,omitempty"` Id DirectoryID `json:"id"` Metadata *DirectoryMetadata `json:"metadata,omitempty"` Name string `binding:"required" json:"name"` Parent *DirectoryID `json:"parent,omitempty"` UpdatedAt time.Time `json:"updatedAt"` }
Directory defines model for Directory.
type DirectoryEvent ¶ added in v0.0.2
type DirectoryEvent struct { DirectoryRequestMeta Type EventType `json:"type"` Time time.Time `json:"time"` Directory Directory `json:"directory"` }
DirectoryEvent is the event that is sent to the event stream.
type DirectoryFetch ¶
type DirectoryFetch struct { Directory Directory `json:"directory"` Version string `json:"version"` }
DirectoryFetch defines model for DirectoryFetch.
type DirectoryID ¶
func ParseDirectoryID ¶
func ParseDirectoryID(id string) (DirectoryID, error)
func (DirectoryID) MarshalJSON ¶ added in v0.0.10
func (did DirectoryID) MarshalJSON() ([]byte, error)
func (*DirectoryID) Scan ¶
func (did *DirectoryID) Scan(value interface{}) error
func (DirectoryID) String ¶
func (did DirectoryID) String() string
func (*DirectoryID) UnmarshalJSON ¶ added in v0.0.10
func (did *DirectoryID) UnmarshalJSON(b []byte) error
type DirectoryList ¶
type DirectoryList struct { Directories []DirectoryID `json:"directories"` Version string `json:"version"` }
DirectoryList defines model for DirectoryList.
type DirectoryMetadata ¶
func (*DirectoryMetadata) Scan ¶
func (dm *DirectoryMetadata) Scan(value interface{}) error
type DirectoryRequestMeta ¶
type DirectoryRequestMeta struct {
Version string `json:"version"`
}
DirectoryRequestMeta defines model for DirectoryRequestMeta.
type EventType ¶ added in v0.0.2
type EventType string
EventType is the type of event that occurred.
type GetDirectoryParams ¶ added in v0.0.13
type GetDirectoryParams struct {
WithDeleted *WithDeleted `form:"with_deleted,omitempty" json:"with_deleted,omitempty"`
}
GetDirectoryParams defines parameters for GetDirectory.
type ListChildrenParams ¶ added in v0.0.13
type ListChildrenParams struct {
WithDeleted *WithDeleted `form:"with_deleted,omitempty" json:"with_deleted,omitempty"`
}
ListChildrenParams defines parameters for ListChildren.
type ListParentsParams ¶ added in v0.0.13
type ListParentsParams struct {
WithDeleted *WithDeleted `form:"with_deleted,omitempty" json:"with_deleted,omitempty"`
}
ListParentsParams defines parameters for ListParents.
type ListParentsUntilParams ¶ added in v0.0.13
type ListParentsUntilParams struct {
WithDeleted *WithDeleted `form:"with_deleted,omitempty" json:"with_deleted,omitempty"`
}
ListParentsUntilParams defines parameters for ListParentsUntil.
type ListRootsParams ¶ added in v0.0.13
type ListRootsParams struct {
WithDeleted *WithDeleted `form:"with_deleted,omitempty" json:"with_deleted,omitempty"`
}
ListRootsParams defines parameters for ListRoots.
type NewDirectory ¶ added in v0.0.8
type NewDirectory struct { Metadata *DirectoryMetadata `json:"metadata,omitempty"` Name string `binding:"required" json:"name"` }
NewDirectory defines model for NewDirectory.
type UpdateDirectoryJSONRequestBody ¶ added in v0.0.13
type UpdateDirectoryJSONRequestBody = UpdateDirectoryRequest
UpdateDirectoryJSONRequestBody defines body for UpdateDirectory for application/json ContentType.
type UpdateDirectoryRequest ¶ added in v0.0.13
type UpdateDirectoryRequest struct { Metadata *DirectoryMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Version string `json:"version"` }
UpdateDirectoryRequest defines model for UpdateDirectoryRequest.
type WithDeleted ¶ added in v0.0.13
type WithDeleted = bool
WithDeleted defines model for with_deleted.