f3

package
v3.11.34 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssueStateOpen   = "open"
	IssueStateClosed = "closed"
)
View Source
const (
	MilestoneStateOpen   = "open"
	MilestoneStateClosed = "closed"
)
View Source
const (
	PullRequestStateOpen   = "open"
	PullRequestStateClosed = "closed"
)
View Source
const (
	ResourceAttachment     = "attachment"
	ResourceAttachments    = "attachments"
	ResourceComment        = "comment"
	ResourceComments       = "comments"
	ResourceIssue          = "issue"
	ResourceIssues         = "issues"
	ResourceLabel          = "label"
	ResourceLabels         = "labels"
	ResourceMilestone      = "milestone"
	ResourceMilestones     = "milestones"
	ResourceOrganization   = "organization"
	ResourceOrganizations  = "organizations"
	ResourceProject        = "project"
	ResourceProjects       = "projects"
	ResourcePullRequest    = "pull_request"
	ResourcePullRequests   = "pull_requests"
	ResourceReaction       = "reaction"
	ResourceReactions      = "reactions"
	ResourceRelease        = "release"
	ResourceReleases       = "releases"
	ResourceRepository     = "repository"
	ResourceRepositories   = "repositories"
	ResourceReview         = "review"
	ResourceReviews        = "reviews"
	ResourceReviewComment  = "reviewcomment"
	ResourceReviewComments = "reviewcomments"
	ResourceTeam           = "team"
	ResourceTeams          = "teams"
	ResourceTeamMember     = "teammember"
	ResourceTeamMembers    = "teammembers"
	ResourceTeamProject    = "teamproject"
	ResourceTeamProjects   = "teamprojects"
	ResourceTopic          = "topic"
	ResourceTopics         = "topics"
	ResourceUser           = "user"
	ResourceUsers          = "users"
	ResourceForge          = "forge"
)
View Source
const (
	ReviewStatePending          = "PENDING"
	ReviewStateApproved         = "APPROVED"
	ReviewStateChangesRequested = "CHANGES_REQUESTED"
	ReviewStateCommented        = "COMMENTED"
	ReviewStateRequestReview    = "REQUEST_REVIEW"
	ReviewStateUnknown          = ""
)
View Source
const (
	TeamPermissionAdmin       = "admin"
	TeamPermissionRepository  = "repository"
	TeamPermissionIssue       = "issue"
	TeamPermissionPullRequest = "pull_request"
	TeamPermissionRelease     = "release"
)
View Source
const (
	TeamAccessNone  = "none"
	TeamAccessRead  = "read"
	TeamAccessWrite = "write"
)
View Source
const RepositoryNameDefault = "vcs"
View Source
const TeamPermissionSeparator = ":"

Variables

View Source
var Nil = &Common{}

Functions

func ArrayReferenceEqual added in v3.11.16

func ArrayReferenceEqual(a, b []Reference) bool

func AvatarDecode added in v3.11.24

func AvatarDecode(encodedImage string) []byte

func AvatarEncode added in v3.11.24

func AvatarEncode(image []byte) string

func Clone added in v3.11.16

func Clone[T any](in T) *T

func Diff added in v3.11.27

func Diff[T any](a, b T) string

func Equal added in v3.11.21

func Equal(a, b any, c Comparer) bool

func EqualCommon added in v3.11.25

func EqualCommon(a, b Common) bool

func EqualFormat added in v3.11.21

func EqualFormat(aa, bb any, c Comparer) bool

func Load

func Load(filename string, data any, validation bool) error

Load project data from file, with optional validation

func NilOrEqualDate added in v3.11.21

func NilOrEqualDate(a, b *Date) bool

func NilOrEqualReference added in v3.11.16

func NilOrEqualReference(a, b Reference) bool

func NilOrEqualTime added in v3.11.4

func NilOrEqualTime(a, b *time.Time) bool

func Store

func Store(filename string, data any) error

func TeamPermissionSplit added in v3.11.25

func TeamPermissionSplit(permission TeamPermission) (unit, access string)

Types

type Attachment added in v3.11.0

type Attachment struct {
	Common        `compare:"ignore"`
	Name          string           `json:"name,omitempty"`
	ContentType   string           `json:"content_type,omitempty"`
	Size          int64            `json:"size,omitempty"`
	DownloadCount int64            `json:"download_count,omitempty"`
	Created       time.Time        `json:"created,omitempty"`
	SHA256        string           `json:"sha256,omitempty"`
	DownloadFunc  DownloadFuncType `json:"-" compare:"ignore"`
}

func (Attachment) Clone added in v3.11.0

func (o Attachment) Clone() Interface

func (*Attachment) Init added in v3.11.16

func (o *Attachment) Init() *Attachment

func (*Attachment) String added in v3.11.25

func (o *Attachment) String() string

func (*Attachment) UnmarshalJSON added in v3.11.16

func (o *Attachment) UnmarshalJSON(b []byte) error

type CI added in v3.4.0

type CI struct {
	Common `compare:"ignore"`
}

func (CI) Clone added in v3.4.0

func (o CI) Clone() Interface

func (*CI) Init added in v3.11.16

func (o *CI) Init() *CI

func (*CI) String added in v3.11.25

func (o *CI) String() string

func (*CI) UnmarshalJSON added in v3.11.16

func (o *CI) UnmarshalJSON(b []byte) error

type Comment

type Comment struct {
	Common   `compare:"ignore"`
	PosterID Reference        `json:"poster_id,omitempty"`
	Created  time.Time        `json:"created,omitempty"`
	Updated  time.Time        `json:"updated,omitempty"`
	Content  markdown.Content `json:"content,omitempty"`
}

func (Comment) Clone

func (o Comment) Clone() Interface

func (*Comment) GetMarkdowns added in v3.11.28

func (o *Comment) GetMarkdowns() []markdown.Content

func (*Comment) GetReferences

func (o *Comment) GetReferences() References

func (*Comment) Init added in v3.11.16

func (o *Comment) Init() *Comment

func (*Comment) String added in v3.11.25

func (o *Comment) String() string

func (*Comment) UnmarshalJSON added in v3.11.16

func (o *Comment) UnmarshalJSON(b []byte) error

type Common

type Common struct {
	Index Reference `json:"index"`
}

func NewCommon

func NewCommon(id string) Common

func (Common) Clone

func (c Common) Clone() Interface

func (*Common) GetID

func (c *Common) GetID() string

func (Common) GetMarkdowns added in v3.11.28

func (c Common) GetMarkdowns() []markdown.Content

func (*Common) GetName

func (c *Common) GetName() string

func (*Common) GetReferences

func (c *Common) GetReferences() References

func (*Common) HasName added in v3.11.5

func (c *Common) HasName() bool

func (*Common) IsNil

func (c *Common) IsNil() bool

func (Common) IsUpToDate added in v3.11.4

func (c Common) IsUpToDate(Interface) bool

func (*Common) SetID

func (c *Common) SetID(id string)

func (*Common) SetName added in v3.11.5

func (c *Common) SetName(string)

func (*Common) String added in v3.11.25

func (c *Common) String() string

type CompareInfo added in v3.11.21

type CompareInfo interface {
	GetIgnore() bool
	SetIgnore(ignore bool) CompareInfo

	GetTransform() CompareTransformFunc
	SetTransform(transform CompareTransformFunc) CompareInfo
	Transform(v any) any
}

func NewCompareInfo added in v3.11.21

func NewCompareInfo() CompareInfo

type CompareTransformFunc added in v3.11.21

type CompareTransformFunc func(v any) any

type Comparer

type Comparer interface {
	GetFormatCompareInfo(o any, field string) CompareInfo
}

type Date added in v3.11.21

type Date struct {
	time.Time
}

type DownloadFuncType

type DownloadFuncType func() io.ReadCloser

type Forge

type Forge struct {
	Common `compare:"false"`
	URL    string `json:"url,omitempty" compare:"ignore"`
}

func (Forge) Clone

func (o Forge) Clone() Interface

func (*Forge) Init added in v3.11.16

func (o *Forge) Init() *Forge

func (*Forge) String added in v3.11.25

func (o *Forge) String() string

func (*Forge) UnmarshalJSON added in v3.11.16

func (o *Forge) UnmarshalJSON(b []byte) error

type ForkReference added in v3.11.16

type ForkReference struct {
	ReferenceImplementation
}

type Interface

type Interface interface {
	String() string
	GetID() string
	GetName() string
	HasName() bool
	SetName(string)
	SetID(id string)
	IsNil() bool
	GetReferences() References
	GetMarkdowns() []markdown.Content
	Clone() Interface
}

func New

func New(name string) Interface

type Issue

type Issue struct {
	Common    `compare:"ignore"`
	PosterID  Reference        `json:"poster_id,omitempty"`
	Assignees []Reference      `json:"assignees,omitempty"`
	Labels    []Reference      `json:"labels,omitempty"`
	Title     string           `json:"title,omitempty"`
	Content   markdown.Content `json:"content,omitempty"`
	Milestone Reference        `json:"milestone,omitempty"`
	State     string           `json:"state,omitempty"` // open, closed
	IsLocked  bool             `json:"is_locked"`
	Created   time.Time        `json:"created,omitempty"`
	Updated   time.Time        `json:"updated,omitempty"`
	Closed    *time.Time       `json:"closed,omitempty"`
}

func (Issue) Clone

func (o Issue) Clone() Interface

func (*Issue) GetMarkdowns added in v3.11.28

func (o *Issue) GetMarkdowns() []markdown.Content

func (*Issue) GetReferences

func (o *Issue) GetReferences() References

func (*Issue) Init added in v3.11.16

func (o *Issue) Init() *Issue

func (*Issue) String added in v3.11.25

func (o *Issue) String() string

func (*Issue) UnmarshalJSON added in v3.11.16

func (o *Issue) UnmarshalJSON(b []byte) error

type Label

type Label struct {
	Common      `compare:"ignore"`
	Name        string `json:"name,omitempty"`
	Color       string `json:"color,omitempty"`
	Description string `json:"description,omitempty"`
}

func (Label) Clone

func (o Label) Clone() Interface

func (*Label) Init added in v3.11.16

func (o *Label) Init() *Label

func (*Label) String added in v3.11.25

func (o *Label) String() string

func (*Label) UnmarshalJSON added in v3.11.16

func (o *Label) UnmarshalJSON(b []byte) error

type LabelReference added in v3.11.16

type LabelReference struct {
	ReferenceImplementation
}

type Milestone

type Milestone struct {
	Common      `compare:"ignore"`
	Title       string           `json:"title,omitempty"`
	Description markdown.Content `json:"description,omitempty"`
	Deadline    *Date            `json:"deadline,omitempty"`
	Created     time.Time        `json:"created,omitempty"`
	Updated     *time.Time       `json:"updated,omitempty"`
	Closed      *time.Time       `json:"closed,omitempty"`
	State       string           `json:"state,omitempty"` // open, closed
}

func (Milestone) Clone

func (o Milestone) Clone() Interface

func (*Milestone) GetMarkdowns added in v3.11.28

func (o *Milestone) GetMarkdowns() []markdown.Content

func (*Milestone) Init added in v3.11.16

func (o *Milestone) Init() *Milestone

func (*Milestone) String added in v3.11.25

func (o *Milestone) String() string

func (*Milestone) UnmarshalJSON added in v3.11.16

func (o *Milestone) UnmarshalJSON(b []byte) error

type MilestoneReference added in v3.11.16

type MilestoneReference struct {
	ReferenceImplementation
}

type Organization

type Organization struct {
	Common   `compare:"ignore"`
	FullName string `json:"full_name,omitempty"`
	Name     string `json:"name,omitempty"`
	Avatar   string `json:"avatar,omitempty"`
}

func (Organization) Clone

func (o Organization) Clone() Interface

func (*Organization) GetName

func (o *Organization) GetName() string

func (*Organization) HasName added in v3.11.5

func (o *Organization) HasName() bool

func (*Organization) Init added in v3.11.16

func (o *Organization) Init() *Organization

func (*Organization) SetName added in v3.11.5

func (o *Organization) SetName(name string)

func (*Organization) String added in v3.11.25

func (o *Organization) String() string

func (*Organization) UnmarshalJSON added in v3.11.16

func (o *Organization) UnmarshalJSON(b []byte) error

type OrganizationReference added in v3.11.16

type OrganizationReference struct {
	ReferenceImplementation
}

type Project

type Project struct {
	Common        `compare:"ignore"`
	Name          string           `json:"name,omitempty"`
	IsPrivate     bool             `json:"is_private"`
	IsMirror      bool             `json:"is_mirror"`
	Description   markdown.Content `json:"description,omitempty"`
	Avatar        string           `json:"avatar,omitempty"`
	DefaultBranch string           `json:"default_branch,omitempty"`
	Forked        Reference        `json:"forked,omitempty"`
	HasWiki       bool             `json:"has_wiki"`
	Created       time.Time        `json:"created,omitempty"`
	Updated       time.Time        `json:"updated,omitempty"`
	Topics        []Reference      `json:"topics,omitempty"`
}

func (Project) Clone

func (o Project) Clone() Interface

func (*Project) GetMarkdowns added in v3.11.28

func (o *Project) GetMarkdowns() []markdown.Content

func (*Project) GetName

func (o *Project) GetName() string

func (*Project) GetReferences

func (o *Project) GetReferences() References

func (*Project) HasName added in v3.11.5

func (o *Project) HasName() bool

func (*Project) Init added in v3.11.16

func (o *Project) Init() *Project

func (*Project) SetName added in v3.11.5

func (o *Project) SetName(name string)

func (*Project) String added in v3.11.25

func (o *Project) String() string

func (*Project) UnmarshalJSON added in v3.11.16

func (o *Project) UnmarshalJSON(b []byte) error

type ProjectReference added in v3.11.16

type ProjectReference struct {
	ReferenceImplementation
}

type PullRequest

type PullRequest struct {
	Common         `compare:"ignore"`
	PosterID       Reference         `json:"poster_id,omitempty"`
	Title          string            `json:"title,omitempty"`
	Content        markdown.Content  `json:"content,omitempty"`
	Milestone      Reference         `json:"milestone,omitempty"`
	State          string            `json:"state,omitempty"` // open, closed
	IsLocked       bool              `json:"is_locked"`
	Created        time.Time         `json:"created,omitempty"`
	Updated        time.Time         `json:"updated,omitempty"`
	Closed         *time.Time        `json:"closed,omitempty"`
	Merged         bool              `json:"merged"`
	MergedTime     *time.Time        `json:"merged_time,omitempty"`
	MergeCommitSHA string            `json:"merged_commit_sha,omitempty"`
	Head           PullRequestBranch `json:"head,omitempty"`
	Base           PullRequestBranch `json:"base,omitempty"`

	FetchFunc PullRequestFetchFunc `json:"-" compare:"ignore"`
}

func (PullRequest) Clone

func (o PullRequest) Clone() Interface

func (*PullRequest) GetMarkdowns added in v3.11.28

func (o *PullRequest) GetMarkdowns() []markdown.Content

func (*PullRequest) GetReferences

func (o *PullRequest) GetReferences() References

func (*PullRequest) Init added in v3.11.16

func (o *PullRequest) Init() *PullRequest

func (*PullRequest) IsForkPullRequest

func (o *PullRequest) IsForkPullRequest() bool

func (*PullRequest) String added in v3.11.25

func (o *PullRequest) String() string

func (*PullRequest) UnmarshalJSON added in v3.11.16

func (o *PullRequest) UnmarshalJSON(b []byte) error

type PullRequestBranch

type PullRequestBranch struct {
	Ref        string    `json:"ref,omitempty"`
	SHA        string    `json:"sha,omitempty"`
	Repository Reference `json:"repository,omitempty" compare:"ignore"`
}

func (*PullRequestBranch) GetReferences added in v3.1.0

func (o *PullRequestBranch) GetReferences() References

func (*PullRequestBranch) UnmarshalJSON added in v3.11.16

func (o *PullRequestBranch) UnmarshalJSON(b []byte) error

type PullRequestFetchFunc

type PullRequestFetchFunc func(ctx context.Context, url, ref string)

type Reaction

type Reaction struct {
	Common  `compare:"ignore"`
	UserID  Reference `json:"user_id,omitempty"`
	Content string    `json:"content,omitempty"`
}

func (Reaction) Clone

func (o Reaction) Clone() Interface

func (*Reaction) GetReferences

func (o *Reaction) GetReferences() References

func (*Reaction) Init added in v3.11.16

func (o *Reaction) Init() *Reaction

func (*Reaction) String added in v3.11.25

func (o *Reaction) String() string

func (*Reaction) UnmarshalJSON added in v3.11.16

func (o *Reaction) UnmarshalJSON(b []byte) error

type Reference

type Reference interface {
	String() string
	IsNil() bool

	Set(reference string)
	Get() string

	SetRequired(required bool)
	GetRequired() bool

	GetIDAsInt() int64
	GetIDAsString() string
}

func NewForkReference added in v3.11.16

func NewForkReference(reference string) Reference

func NewLabelReference added in v3.11.16

func NewLabelReference(reference string) Reference

func NewMilestoneReference added in v3.11.16

func NewMilestoneReference(reference string) Reference

func NewOrganizationReference added in v3.11.16

func NewOrganizationReference(reference string) Reference

func NewProjectReference added in v3.11.16

func NewProjectReference(reference string) Reference

func NewReference

func NewReference(reference string) Reference

func NewRepositoryReference added in v3.11.16

func NewRepositoryReference(reference string) Reference

func NewTopicReference added in v3.11.16

func NewTopicReference(reference string) Reference

func NewUserReference added in v3.11.16

func NewUserReference(reference string) Reference

type ReferenceImplementation added in v3.11.16

type ReferenceImplementation struct {
	// contains filtered or unexported fields
}

func (ReferenceImplementation) Equal added in v3.11.16

func (*ReferenceImplementation) Get added in v3.11.16

func (*ReferenceImplementation) GetIDAsInt added in v3.11.16

func (o *ReferenceImplementation) GetIDAsInt() int64

func (*ReferenceImplementation) GetIDAsString added in v3.11.16

func (o *ReferenceImplementation) GetIDAsString() string

func (*ReferenceImplementation) GetRequired added in v3.11.30

func (o *ReferenceImplementation) GetRequired() bool

func (*ReferenceImplementation) IsNil added in v3.11.16

func (o *ReferenceImplementation) IsNil() bool

func (*ReferenceImplementation) MarshalJSON added in v3.11.16

func (o *ReferenceImplementation) MarshalJSON() ([]byte, error)

func (*ReferenceImplementation) Set added in v3.11.16

func (o *ReferenceImplementation) Set(reference string)

func (*ReferenceImplementation) SetRequired added in v3.11.30

func (o *ReferenceImplementation) SetRequired(required bool)

func (*ReferenceImplementation) String added in v3.11.25

func (o *ReferenceImplementation) String() string

func (*ReferenceImplementation) UnmarshalJSON added in v3.11.16

func (o *ReferenceImplementation) UnmarshalJSON(b []byte) error

type References

type References []Reference
func GetLinks(ctx context.Context, f Interface) References

func NewReferences

func NewReferences() References

type Release

type Release struct {
	Common          `compare:"ignore"`
	TagName         string           `json:"tag_name,omitempty"`
	TargetCommitish string           `json:"target_commitish,omitempty"`
	Name            string           `json:"name,omitempty"`
	Body            markdown.Content `json:"body,omitempty"`
	Draft           bool             `json:"draft"`
	Prerelease      bool             `json:"prerelease"`
	PublisherID     Reference        `json:"publisher_id,omitempty"`
	Created         time.Time        `json:"created,omitempty"`
}

func (Release) Clone

func (o Release) Clone() Interface

func (*Release) GetMarkdowns added in v3.11.28

func (o *Release) GetMarkdowns() []markdown.Content

func (*Release) GetReferences

func (o *Release) GetReferences() References

func (*Release) Init added in v3.11.16

func (o *Release) Init() *Release

func (*Release) String added in v3.11.25

func (o *Release) String() string

func (*Release) UnmarshalJSON added in v3.11.16

func (o *Release) UnmarshalJSON(b []byte) error

type Repository

type Repository struct {
	Common `compare:"false"`

	FetchFunc func(ctx context.Context, destination, internalRef string) `json:"-" compare:"ignore"`
}

func (Repository) Clone

func (o Repository) Clone() Interface

func (*Repository) Init added in v3.11.16

func (o *Repository) Init() *Repository

func (*Repository) String added in v3.11.25

func (o *Repository) String() string

func (*Repository) UnmarshalJSON added in v3.11.16

func (o *Repository) UnmarshalJSON(b []byte) error

type RepositoryReference added in v3.11.16

type RepositoryReference struct {
	ReferenceImplementation
}

type Review

type Review struct {
	Common     `compare:"ignore"`
	ReviewerID Reference        `json:"reviewer_id,omitempty"`
	Official   bool             `json:"official"`
	CommitID   string           `json:"commit_id,omitempty"`
	Content    markdown.Content `json:"content,omitempty"`
	CreatedAt  time.Time        `json:"created_at,omitempty"`
	State      string           `json:"state,omitempty"`
}

func (Review) Clone

func (o Review) Clone() Interface

func (*Review) GetMarkdowns added in v3.11.28

func (o *Review) GetMarkdowns() []markdown.Content

func (*Review) GetReferences

func (o *Review) GetReferences() References

func (*Review) Init added in v3.11.16

func (o *Review) Init() *Review

func (*Review) String added in v3.11.25

func (o *Review) String() string

func (*Review) UnmarshalJSON added in v3.11.16

func (o *Review) UnmarshalJSON(b []byte) error

type ReviewComment

type ReviewComment struct {
	Common     `compare:"ignore"`
	Content    markdown.Content `json:"content,omitempty"`
	TreePath   string           `json:"tree_path,omitempty"`
	DiffHunk   string           `json:"diff_hunk,omitempty"`
	Line       int              `json:"line,omitempty"`
	LinesCount int              `json:"lines_count,omitempty"`
	CommitID   string           `json:"commit_id,omitempty"`
	PosterID   Reference        `json:"poster_id,omitempty"`
	CreatedAt  time.Time        `json:"created_at,omitempty"`
	UpdatedAt  time.Time        `json:"updated_at,omitempty"`
}

func (ReviewComment) Clone

func (o ReviewComment) Clone() Interface

func (*ReviewComment) GetMarkdowns added in v3.11.28

func (o *ReviewComment) GetMarkdowns() []markdown.Content

func (*ReviewComment) GetReferences

func (o *ReviewComment) GetReferences() References

func (*ReviewComment) Init added in v3.11.16

func (o *ReviewComment) Init() *ReviewComment

func (*ReviewComment) String added in v3.11.25

func (o *ReviewComment) String() string

func (*ReviewComment) UnmarshalJSON added in v3.11.16

func (o *ReviewComment) UnmarshalJSON(b []byte) error

type Team added in v3.11.25

type Team struct {
	Common      `compare:"ignore"`
	Name        string           `json:"name,omitempty"`
	Description markdown.Content `json:"description,omitempty"`
	Permissions []TeamPermission `json:"permissions"`
	AllProjects bool             `json:"all_projects"`
}

func (Team) Clone added in v3.11.25

func (o Team) Clone() Interface

func (*Team) GetMarkdowns added in v3.11.28

func (o *Team) GetMarkdowns() []markdown.Content

func (*Team) GetName added in v3.11.25

func (o *Team) GetName() string

func (*Team) HasName added in v3.11.25

func (o *Team) HasName() bool

func (*Team) Init added in v3.11.25

func (o *Team) Init() *Team

func (Team) IsAdmin added in v3.11.25

func (o Team) IsAdmin() bool

func (*Team) SetName added in v3.11.25

func (o *Team) SetName(name string)

func (*Team) String added in v3.11.25

func (o *Team) String() string

func (*Team) UnmarshalJSON added in v3.11.25

func (o *Team) UnmarshalJSON(b []byte) error

type TeamMember added in v3.11.25

type TeamMember struct {
	Common `compare:"ignore"`
	Name   string    `json:"name"`
	User   Reference `json:"user"`
}

func (TeamMember) Clone added in v3.11.25

func (o TeamMember) Clone() Interface

func (*TeamMember) GetName added in v3.11.25

func (o *TeamMember) GetName() string

func (*TeamMember) GetReferences added in v3.11.25

func (o *TeamMember) GetReferences() References

func (*TeamMember) HasName added in v3.11.25

func (o *TeamMember) HasName() bool

func (*TeamMember) Init added in v3.11.25

func (o *TeamMember) Init() *TeamMember

func (*TeamMember) SetName added in v3.11.25

func (o *TeamMember) SetName(name string)

func (*TeamMember) String added in v3.11.25

func (o *TeamMember) String() string

func (*TeamMember) UnmarshalJSON added in v3.11.25

func (o *TeamMember) UnmarshalJSON(b []byte) error

type TeamPermission added in v3.11.25

type TeamPermission string

func TeamPermissionCompose added in v3.11.25

func TeamPermissionCompose(unit, access string) TeamPermission

type TeamProject added in v3.11.25

type TeamProject struct {
	Common  `compare:"ignore"`
	Name    string    `json:"name"`
	Project Reference `json:"project"`
}

func (TeamProject) Clone added in v3.11.25

func (o TeamProject) Clone() Interface

func (*TeamProject) GetName added in v3.11.25

func (o *TeamProject) GetName() string

func (*TeamProject) GetReferences added in v3.11.25

func (o *TeamProject) GetReferences() References

func (*TeamProject) HasName added in v3.11.25

func (o *TeamProject) HasName() bool

func (*TeamProject) Init added in v3.11.25

func (o *TeamProject) Init() *TeamProject

func (*TeamProject) SetName added in v3.11.25

func (o *TeamProject) SetName(name string)

func (*TeamProject) String added in v3.11.25

func (o *TeamProject) String() string

func (*TeamProject) UnmarshalJSON added in v3.11.25

func (o *TeamProject) UnmarshalJSON(b []byte) error

type Topic

type Topic struct {
	Common `compare:"ignore"`
	Name   string `json:"name,omitempty"`
}

func (Topic) Clone

func (o Topic) Clone() Interface

func (*Topic) Init added in v3.11.16

func (o *Topic) Init() *Topic

func (*Topic) String added in v3.11.25

func (o *Topic) String() string

func (*Topic) UnmarshalJSON added in v3.11.16

func (o *Topic) UnmarshalJSON(b []byte) error

type TopicReference added in v3.11.16

type TopicReference struct {
	ReferenceImplementation
}

type User

type User struct {
	Common   `compare:"ignore"`
	Name     string `json:"name,omitempty"`
	Email    string `json:"email,omitempty"`
	UserName string `json:"username,omitempty"`
	Avatar   string `json:"avatar,omitempty"`
	Password string `json:"password,omitempty" compare:"ignore"`
	IsAdmin  bool   `json:"admin"`
}

func (User) Clone

func (o User) Clone() Interface

func (*User) GetName

func (o *User) GetName() string

func (*User) HasName added in v3.11.5

func (o *User) HasName() bool

func (*User) Init added in v3.11.16

func (o *User) Init() *User

func (*User) SetName added in v3.11.5

func (o *User) SetName(userName string)

func (*User) String added in v3.11.25

func (o *User) String() string

func (*User) UnmarshalJSON added in v3.11.16

func (o *User) UnmarshalJSON(b []byte) error

type UserReference added in v3.11.16

type UserReference struct {
	ReferenceImplementation
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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