types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

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

func ErrorFromResponse

func ErrorFromResponse(p []byte) string

Types

type Environment

type Environment struct {
	Attributes struct {
		Name  string `json:"name"`
		URL   string `json:"url"`
		Ready bool   `json:"ready"`

		Projects []struct {
			PullRequestNumber int    `json:"pull_request_number"`
			RepoName          string `json:"repo_name"`
		} `json:"projects"`

		Services []Service `json:"services"`
	} `json:"attributes"`

	ID string `json:"id"`
}
type Links struct {
	First string `json:"first"`
	Last  string `json:"last"`
	Next  string `json:"next"`
	Prev  string `json:"prev"`
}

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 RespManyEnvs

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

func UnmarshalManyEnvs

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

func (RespManyEnvs) NextPage

func (r RespManyEnvs) NextPage() int

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

type Response

type Response struct {
	Data struct {
		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"`
}

Jump to

Keyboard shortcuts

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