models

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKind

type AuthKind string

AuthKind auth kind

swagger:model auth.Kind

const (

	// AuthKindSession captures enum value "session"
	AuthKindSession AuthKind = "session"

	// AuthKindAPI captures enum value "api"
	AuthKindAPI AuthKind = "api"

	// AuthKindService captures enum value "service"
	AuthKindService AuthKind = "service"
)

func NewAuthKind

func NewAuthKind(value AuthKind) *AuthKind

func (AuthKind) ContextValidate

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

ContextValidate validates this auth kind based on context it is used

func (AuthKind) Pointer

func (m AuthKind) Pointer() *AuthKind

Pointer returns a pointer to a freshly-allocated AuthKind.

func (AuthKind) Validate

func (m AuthKind) Validate(formats strfmt.Registry) error

Validate validates this auth kind

type KindKind

type KindKind string

KindKind kind kind

swagger:model kind.Kind

const (

	// KindKindSession captures enum value "session"
	KindKindSession KindKind = "session"

	// KindKindAPI captures enum value "api"
	KindKindAPI KindKind = "api"

	// KindKindService captures enum value "service"
	KindKindService KindKind = "service"
)

func NewKindKind

func NewKindKind(value KindKind) *KindKind

func (KindKind) ContextValidate

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

ContextValidate validates this kind kind based on context it is used

func (KindKind) Pointer

func (m KindKind) Pointer() *KindKind

Pointer returns a pointer to a freshly-allocated KindKind.

func (KindKind) Validate

func (m KindKind) Validate(formats strfmt.Registry) error

Validate validates this kind kind

type ModelsConfigResponse

type ModelsConfigResponse struct {

	// default next url
	DefaultNextURL string `json:"default_next_url,omitempty"`

	// device enabled
	DeviceEnabled bool `json:"device_enabled,omitempty"`

	// endpoint
	Endpoint string `json:"endpoint,omitempty"`

	// github enabled
	GithubEnabled bool `json:"github_enabled,omitempty"`

	// google enabled
	GoogleEnabled bool `json:"google_enabled,omitempty"`

	// magic enabled
	MagicEnabled bool `json:"magic_enabled,omitempty"`
}

ModelsConfigResponse models config response

swagger:model models.ConfigResponse

func (*ModelsConfigResponse) ContextValidate

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

ContextValidate validates this models config response based on context it is used

func (*ModelsConfigResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsConfigResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsConfigResponse) Validate

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

Validate validates this models config response

type ModelsDeviceCallbackResponse

type ModelsDeviceCallbackResponse struct {

	// identifier
	Identifier string `json:"identifier,omitempty"`
}

ModelsDeviceCallbackResponse models device callback response

swagger:model models.DeviceCallbackResponse

func (*ModelsDeviceCallbackResponse) ContextValidate

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

ContextValidate validates this models device callback response based on context it is used

func (*ModelsDeviceCallbackResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsDeviceCallbackResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsDeviceCallbackResponse) Validate

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

Validate validates this models device callback response

type ModelsDeviceFlowResponse

type ModelsDeviceFlowResponse struct {

	// device code
	DeviceCode string `json:"device_code,omitempty"`

	// polling rate
	PollingRate int64 `json:"polling_rate,omitempty"`

	// user code
	UserCode string `json:"user_code,omitempty"`
}

ModelsDeviceFlowResponse models device flow response

swagger:model models.DeviceFlowResponse

func (*ModelsDeviceFlowResponse) ContextValidate

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

ContextValidate validates this models device flow response based on context it is used

func (*ModelsDeviceFlowResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsDeviceFlowResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsDeviceFlowResponse) Validate

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

Validate validates this models device flow response

type ModelsHealthResponse

type ModelsHealthResponse struct {

	// subscriptions
	Subscriptions bool `json:"subscriptions,omitempty"`
}

ModelsHealthResponse models health response

swagger:model models.HealthResponse

func (*ModelsHealthResponse) ContextValidate

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

ContextValidate validates this models health response based on context it is used

func (*ModelsHealthResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsHealthResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsHealthResponse) Validate

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

Validate validates this models health response

type ModelsServiceKeyLoginResponse

type ModelsServiceKeyLoginResponse struct {

	// creator
	Creator string `json:"creator,omitempty"`

	// organization
	Organization string `json:"organization,omitempty"`

	// resources
	Resources []*ServicekeyResource `json:"resources"`

	// service key id
	ServiceKeyID string `json:"service_key_id,omitempty"`

	// service session id
	ServiceSessionID string `json:"service_session_id,omitempty"`

	// service session secret
	ServiceSessionSecret string `json:"service_session_secret,omitempty"`
}

ModelsServiceKeyLoginResponse models service key login response

swagger:model models.ServiceKeyLoginResponse

func (*ModelsServiceKeyLoginResponse) ContextValidate

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

ContextValidate validate this models service key login response based on the context it is used

func (*ModelsServiceKeyLoginResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsServiceKeyLoginResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsServiceKeyLoginResponse) Validate

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

Validate validates this models service key login response

type ModelsUserInfoResponse

type ModelsUserInfoResponse struct {

	// identifier
	Identifier string `json:"identifier,omitempty"`

	// kind
	Kind KindKind `json:"kind,omitempty"`

	// organization
	Organization string `json:"organization,omitempty"`
}

ModelsUserInfoResponse models user info response

swagger:model models.UserInfoResponse

func (*ModelsUserInfoResponse) ContextValidate

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

ContextValidate validate this models user info response based on the context it is used

func (*ModelsUserInfoResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsUserInfoResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsUserInfoResponse) Validate

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

Validate validates this models user info response

type ServicekeyResource

type ServicekeyResource struct {

	// ID is the resource's unique identifier
	ID string `json:"id,omitempty"`

	// Type is the resource's type
	//
	// This can be customized to the application that is using the Service Key
	Type string `json:"type,omitempty"`
}

ServicekeyResource servicekey resource

swagger:model servicekey.Resource

func (*ServicekeyResource) ContextValidate

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

ContextValidate validates this servicekey resource based on context it is used

func (*ServicekeyResource) MarshalBinary

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

MarshalBinary interface implementation

func (*ServicekeyResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServicekeyResource) Validate

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

Validate validates this servicekey resource

Jump to

Keyboard shortcuts

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