models

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMissing

type DBMissing struct {

	// code
	// Example: 0D0DU2
	// Required: true
	Code *string `json:"code"`

	// message
	// Example: Database does not exist
	// Required: true
	Message *string `json:"message"`
}

DBMissing d b missing

swagger:model DBMissing

func (*DBMissing) ContextValidate

func (m *DBMissing) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this d b missing based on context it is used

func (*DBMissing) MarshalBinary

func (m *DBMissing) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DBMissing) UnmarshalBinary

func (m *DBMissing) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DBMissing) Validate

func (m *DBMissing) Validate(formats strfmt.Registry) error

Validate validates this d b missing

type Database

type Database struct {

	// root
	// Required: true
	Root *DatabaseRoot `json:"root"`

	// database
	// Format: binary
	Database map[string]io.ReadCloser `json:"-"`
}

Database database

swagger:model Database

func (*Database) ContextValidate

func (m *Database) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this database based on the context it is used

func (*Database) MarshalBinary

func (m *Database) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Database) MarshalJSON

func (m Database) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*Database) UnmarshalBinary

func (m *Database) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Database) UnmarshalJSON

func (m *Database) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*Database) Validate

func (m *Database) Validate(formats strfmt.Registry) error

Validate validates this database

type DatabaseRoot

type DatabaseRoot struct {

	// dbname
	// Example: myDb
	// Required: true
	Dbname *string `json:"dbname"`

	// files
	// Required: true
	Files []*DatabaseRootFilesItems0 `json:"files"`

	// options
	// Required: true
	Options interface{} `json:"options"`
}

DatabaseRoot database root Example: {\"dbname\": \"myDb\", \"options\": {}, \"files\": [ {\"filename\": \"file1.ttl\"} ] }

swagger:model DatabaseRoot

func (*DatabaseRoot) ContextValidate

func (m *DatabaseRoot) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this database root based on the context it is used

func (*DatabaseRoot) MarshalBinary

func (m *DatabaseRoot) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseRoot) UnmarshalBinary

func (m *DatabaseRoot) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseRoot) Validate

func (m *DatabaseRoot) Validate(formats strfmt.Registry) error

Validate validates this database root

type DatabaseRootFilesItems0

type DatabaseRootFilesItems0 struct {

	// context
	// Example: urn:my:graph
	Context string `json:"context,omitempty"`

	// filename
	// Example: fileX.ttl
	// Required: true
	Filename *string `json:"filename"`
}

DatabaseRootFilesItems0 database root files items0

swagger:model DatabaseRootFilesItems0

func (*DatabaseRootFilesItems0) ContextValidate

func (m *DatabaseRootFilesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database root files items0 based on context it is used

func (*DatabaseRootFilesItems0) MarshalBinary

func (m *DatabaseRootFilesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseRootFilesItems0) UnmarshalBinary

func (m *DatabaseRootFilesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseRootFilesItems0) Validate

func (m *DatabaseRootFilesItems0) Validate(formats strfmt.Registry) error

Validate validates this database root files items0

type DatabaseSize

type DatabaseSize struct {

	// size
	// Required: true
	Size *string `json:"size"`
}

DatabaseSize database size

swagger:model DatabaseSize

func (*DatabaseSize) ContextValidate

func (m *DatabaseSize) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database size based on context it is used

func (*DatabaseSize) MarshalBinary

func (m *DatabaseSize) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseSize) UnmarshalBinary

func (m *DatabaseSize) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseSize) Validate

func (m *DatabaseSize) Validate(formats strfmt.Registry) error

Validate validates this database size

type Databases

type Databases struct {

	// databases
	// Required: true
	Databases []string `json:"databases"`
}

Databases databases

swagger:model Databases

func (*Databases) ContextValidate

func (m *Databases) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this databases based on context it is used

func (*Databases) MarshalBinary

func (m *Databases) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Databases) UnmarshalBinary

func (m *Databases) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Databases) Validate

func (m *Databases) Validate(formats strfmt.Registry) error

Validate validates this databases

type Enabled

type Enabled struct {

	// enabled
	// Required: true
	Enabled bool `json:"enabled"`
}

Enabled enabled

swagger:model Enabled

func (*Enabled) ContextValidate

func (m *Enabled) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this enabled based on context it is used

func (*Enabled) MarshalBinary

func (m *Enabled) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Enabled) UnmarshalBinary

func (m *Enabled) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Enabled) Validate

func (m *Enabled) Validate(formats strfmt.Registry) error

Validate validates this enabled

type Error

type Error struct {

	// code
	// Required: true
	Code *int32 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Generic

type Generic struct {

	// message
	// Example: Successfully executed request
	// Required: true
	Message *string `json:"message"`
}

Generic generic

swagger:model Generic

func (*Generic) ContextValidate

func (m *Generic) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this generic based on context it is used

func (*Generic) MarshalBinary

func (m *Generic) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Generic) UnmarshalBinary

func (m *Generic) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Generic) Validate

func (m *Generic) Validate(formats strfmt.Registry) error

Validate validates this generic

type NotExists

type NotExists struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

NotExists not exists

swagger:model NotExists

func (*NotExists) ContextValidate

func (m *NotExists) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this not exists based on context it is used

func (*NotExists) MarshalBinary

func (m *NotExists) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotExists) UnmarshalBinary

func (m *NotExists) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotExists) Validate

func (m *NotExists) Validate(formats strfmt.Registry) error

Validate validates this not exists

type Password

type Password struct {

	// password
	// Required: true
	Password *string `json:"password"`
}

Password password

swagger:model Password

func (*Password) ContextValidate

func (m *Password) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this password based on context it is used

func (*Password) MarshalBinary

func (m *Password) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Password) UnmarshalBinary

func (m *Password) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Password) Validate

func (m *Password) Validate(formats strfmt.Registry) error

Validate validates this password

type Permission

type Permission struct {

	// action
	// Required: true
	Action *string `json:"action"`

	// resource
	// Required: true
	Resource []string `json:"resource"`

	// resource type
	// Required: true
	ResourceType *string `json:"resource_type"`
}

Permission permission

swagger:model Permission

func (*Permission) ContextValidate

func (m *Permission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this permission based on context it is used

func (*Permission) MarshalBinary

func (m *Permission) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Permission) UnmarshalBinary

func (m *Permission) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Permission) Validate

func (m *Permission) Validate(formats strfmt.Registry) error

Validate validates this permission

type Permissions

type Permissions struct {

	// permissions
	// Required: true
	Permissions []*Permission `json:"permissions"`
}

Permissions permissions

swagger:model Permissions

func (*Permissions) ContextValidate

func (m *Permissions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this permissions based on the context it is used

func (*Permissions) MarshalBinary

func (m *Permissions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Permissions) UnmarshalBinary

func (m *Permissions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Permissions) Validate

func (m *Permissions) Validate(formats strfmt.Registry) error

Validate validates this permissions

type Rolename

type Rolename struct {

	// rolename
	// Required: true
	Rolename *string `json:"rolename"`
}

Rolename rolename

swagger:model Rolename

func (*Rolename) ContextValidate

func (m *Rolename) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rolename based on context it is used

func (*Rolename) MarshalBinary

func (m *Rolename) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rolename) UnmarshalBinary

func (m *Rolename) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rolename) Validate

func (m *Rolename) Validate(formats strfmt.Registry) error

Validate validates this rolename

type Roles

type Roles struct {

	// roles
	// Required: true
	Roles []string `json:"roles"`
}

Roles roles

swagger:model Roles

func (*Roles) ContextValidate

func (m *Roles) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this roles based on context it is used

func (*Roles) MarshalBinary

func (m *Roles) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Roles) UnmarshalBinary

func (m *Roles) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Roles) Validate

func (m *Roles) Validate(formats strfmt.Registry) error

Validate validates this roles

type Superuser

type Superuser struct {

	// superuser
	// Required: true
	Superuser bool `json:"superuser"`
}

Superuser superuser

swagger:model Superuser

func (*Superuser) ContextValidate

func (m *Superuser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this superuser based on context it is used

func (*Superuser) MarshalBinary

func (m *Superuser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Superuser) UnmarshalBinary

func (m *Superuser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Superuser) Validate

func (m *Superuser) Validate(formats strfmt.Registry) error

Validate validates this superuser

type User

type User struct {

	// password
	// Required: true
	Password []string `json:"password"`

	// superuser
	// Required: true
	Superuser bool `json:"superuser"`

	// username
	// Required: true
	Username *string `json:"username"`
}

User user

swagger:model User

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user based on context it is used

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type Users

type Users struct {

	// users
	// Required: true
	Users []string `json:"users"`
}

Users users

swagger:model Users

func (*Users) ContextValidate

func (m *Users) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this users based on context it is used

func (*Users) MarshalBinary

func (m *Users) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Users) UnmarshalBinary

func (m *Users) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Users) Validate

func (m *Users) Validate(formats strfmt.Registry) error

Validate validates this users

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL