shared

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit added in v0.18.0

type Commit struct {
	Repo    CommitRepo  `json:"repo" api:"required"`
	Sha     string      `json:"sha" api:"required"`
	Stats   CommitStats `json:"stats" api:"required"`
	TreeOid string      `json:"tree_oid" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Repo        respjson.Field
		Sha         respjson.Field
		Stats       respjson.Field
		TreeOid     respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (Commit) RawJSON added in v0.18.0

func (r Commit) RawJSON() string

Returns the unmodified JSON received from the API

func (*Commit) UnmarshalJSON added in v0.18.0

func (r *Commit) UnmarshalJSON(data []byte) error

type CommitRepo added in v0.18.0

type CommitRepo struct {
	Branch string `json:"branch" api:"required"`
	Host   string `json:"host" api:"required"`
	Name   string `json:"name" api:"required"`
	Owner  string `json:"owner" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Branch      respjson.Field
		Host        respjson.Field
		Name        respjson.Field
		Owner       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (CommitRepo) RawJSON added in v0.18.0

func (r CommitRepo) RawJSON() string

Returns the unmodified JSON received from the API

func (*CommitRepo) UnmarshalJSON added in v0.18.0

func (r *CommitRepo) UnmarshalJSON(data []byte) error

type CommitStats added in v0.29.0

type CommitStats struct {
	Additions int64 `json:"additions" api:"required"`
	Deletions int64 `json:"deletions" api:"required"`
	Total     int64 `json:"total" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Additions   respjson.Field
		Deletions   respjson.Field
		Total       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (CommitStats) RawJSON added in v0.29.0

func (r CommitStats) RawJSON() string

Returns the unmodified JSON received from the API

func (*CommitStats) UnmarshalJSON added in v0.29.0

func (r *CommitStats) UnmarshalJSON(data []byte) error

type FileInputContentParam

type FileInputContentParam struct {
	// File content
	Content string `json:"content" api:"required"`
	// contains filtered or unexported fields
}

The property Content is required.

func (FileInputContentParam) MarshalJSON

func (r FileInputContentParam) MarshalJSON() (data []byte, err error)

func (*FileInputContentParam) UnmarshalJSON

func (r *FileInputContentParam) UnmarshalJSON(data []byte) error

type FileInputURLParam

type FileInputURLParam struct {
	// URL to fetch file content from
	URL string `json:"url" api:"required"`
	// contains filtered or unexported fields
}

The property URL is required.

func (FileInputURLParam) MarshalJSON

func (r FileInputURLParam) MarshalJSON() (data []byte, err error)

func (*FileInputURLParam) UnmarshalJSON

func (r *FileInputURLParam) UnmarshalJSON(data []byte) error

type FileInputUnionParam

type FileInputUnionParam struct {
	OfFileInputContent *FileInputContentParam `json:",omitzero,inline"`
	OfFileInputURL     *FileInputURLParam     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func FileInputParamOfFileInputContent

func FileInputParamOfFileInputContent(content string) FileInputUnionParam

func FileInputParamOfFileInputURL

func FileInputParamOfFileInputURL(url string) FileInputUnionParam

func (FileInputUnionParam) MarshalJSON

func (u FileInputUnionParam) MarshalJSON() ([]byte, error)

func (*FileInputUnionParam) UnmarshalJSON

func (u *FileInputUnionParam) UnmarshalJSON(data []byte) error

type Target added in v0.25.0

type Target string
const (
	TargetNode       Target = "node"
	TargetTypescript Target = "typescript"
	TargetPython     Target = "python"
	TargetGo         Target = "go"
	TargetJava       Target = "java"
	TargetKotlin     Target = "kotlin"
	TargetRuby       Target = "ruby"
	TargetTerraform  Target = "terraform"
	TargetCli        Target = "cli"
	TargetPhp        Target = "php"
	TargetCsharp     Target = "csharp"
	TargetSql        Target = "sql"
	TargetOpenAPI    Target = "openapi"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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