types

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFromResponse

func ErrorFromResponse(p []byte) string

Types

type Environment

type Environment struct {
	ID         string                `json:"id"`
	Attributes EnvironmentAttributes `json:"attributes"`
}

type EnvironmentAttributes added in v1.7.0

type EnvironmentAttributes struct {
	Name     string    `json:"name"`
	URL      string    `json:"url"`
	Ready    bool      `json:"ready"`
	Projects []Project `json:"projects"`
	Services []Service `json:"services"`
}
type Links struct {
	First string `json:"first"`
	Last  string `json:"last"`
	Next  string `json:"next"`
	Prev  string `json:"prev"`
}

func (Links) NextPage added in v1.5.0

func (l Links) NextPage() int

NextPage extracts the value of the "page" query parameter of the "next" URL.

type OrgsResponse

type OrgsResponse struct {
	Data []struct {
		Attributes struct {
			Name string `json:"name"`
		} `json:"attributes"`
	} `json:"data"`
}

func UnmarshalOrgs

func UnmarshalOrgs(body []byte) (*OrgsResponse, error)

type Project added in v1.7.0

type Project struct {
	PullRequestNumber int    `json:"pull_request_number"`
	RepoName          string `json:"repo_name"`
}

type RespManyEnvs

type RespManyEnvs struct {
	Data  []Environment `json:"data"`
	Links Links         `json:"links"`
}

func UnmarshalManyEnvs

func UnmarshalManyEnvs(p []byte) (*RespManyEnvs, error)

type Response

type Response struct {
	Data Environment `json:"data"`
}

func UnmarshalEnv

func UnmarshalEnv(p []byte) (*Response, error)

type Service

type Service struct {
	Name          string   `json:"name"`
	Ports         []string `json:"ports"`
	SanitizedName string   `json:"sanitized_name"`
	URL           string   `json:"url"`
}

type Snapshot added in v1.5.0

type Snapshot struct {
	Attributes SnapshotAttributes `json:"attributes"`
	ID         string             `json:"id"`
	Type       string             `json:"type"`
}

type SnapshotAttributes added in v1.7.0

type SnapshotAttributes struct {
	CreatedAt          string `json:"created_at"`
	FromSnapshotNumber int    `json:"from_snapshot_number"`
	SequenceNumber     int    `json:"sequence_number"`
	Status             string `json:"status"`
	TotalSize          int    `json:"total_size"`
}

type SnapshotsResponse added in v1.5.0

type SnapshotsResponse struct {
	Data  []Snapshot `json:"data"`
	Links Links      `json:"links"`
}

type UUIDResponse added in v1.6.0

type UUIDResponse struct {
	Data []string `json:"data"`
}

type Volume added in v1.5.0

type Volume struct {
	Attributes VolumeAttributes `json:"attributes"`
	ID         string           `json:"id"`
	Type       string           `json:"type"`
}

type VolumeAttributes added in v1.7.0

type VolumeAttributes struct {
	ComposePath      string `json:"compose_path"`
	RemoteComposeURL string `json:"remote_compose_url"`
	Name             string `json:"volume_name"`
	ServiceName      string `json:"service_name"`
	VolumePath       string `json:"volume_path"`
}

type VolumesResponse added in v1.5.0

type VolumesResponse struct {
	Data []Volume `json:"data"`
}

Jump to

Keyboard shortcuts

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