entity

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	ID                uuid.UUID `yaml:"id" json:"id"`
	Path              string    `yaml:"path" json:"path"`
	Description       string    `yaml:"description,omitempty" json:"description,omitempty"`
	RawData           string    `yaml:"raw_data" json:"raw_data"`
	CreationTimestamp time.Time `yaml:"creation_timestamp" json:"creation_timestamp"`
	UpdateTimestamp   time.Time `yaml:"update_timestamp" json:"update_timestamp"`
}

func (*Blog) Validate

func (b *Blog) Validate() error

type Organization

type Organization struct {
	ID                uuid.UUID `yaml:"id" json:"id"`
	Name              string    `yaml:"name" json:"name"`
	Description       string    `yaml:"description" json:"description"`
	Labels            []string  `yaml:"labels,omitempty" json:"labels,omitempty"`
	CreationTimestamp time.Time `yaml:"creation_timestamp" json:"creation_timestamp"`
	UpdateTimestamp   time.Time `yaml:"update_timestamp" json:"update_timestamp"`
}

func (*Organization) Validate

func (o *Organization) Validate() error

type Project

type Project struct {
	ID                uuid.UUID     `yaml:"id" json:"id"`
	Name              string        `yaml:"name" json:"name"`
	Organization      *Organization `yaml:"organization" json:"organization"`
	Description       string        `yaml:"description,omitempty" json:"description,omitempty"`
	Path              string        `yaml:"path,omitempty" json:"path,omitempty"`
	Labels            []string      `yaml:"labels,omitempty" json:"labels,omitempty"`
	Owner             *User         `yaml:"owner,omitempty" json:"owner,omitempty"`
	CreationTimestamp time.Time     `yaml:"creationTimestamp,omitempty" json:"creationTimestamp,omitempty"`
	UpdateTimestamp   time.Time     `yaml:"updateTimestamp,omitempty" json:"updateTimestamp,omitempty"`
}

func (*Project) Validate

func (p *Project) Validate() error

type ProjectFilter

type ProjectFilter struct {
	OrgID uuid.UUID
	Name  string
}

type User

type User struct {
	ID                uuid.UUID `yaml:"id" json:"id"`
	Name              string    `yaml:"name" json:"name"`
	Description       string    `yaml:"description,omitempty" json:"description,omitempty"`
	Username          string    `yaml:"username" json:"username"`
	Email             string    `yaml:"email" json:"email"`
	Password          string    `yaml:"password,omitempty" json:"password,omitempty"`
	CreationTimestamp time.Time `yaml:"creation_timestamp" json:"creation_timestamp"`
	UpdateTimestamp   time.Time `yaml:"update_timestamp" json:"update_timestamp"`
}

func (*User) Validate

func (u *User) Validate() error

Jump to

Keyboard shortcuts

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