buildkite

package
v0.0.0-...-c23c236 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization struct {
	ID                     string
	Email                  string
	Name                   string
	CreatedAt              time.Time
	ExpireAt               *time.Time
	RevokedAt              *time.Time
	UserSessionDestroyedAt *time.Time
}

type Client

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

Client is a Buildkite GraphQL client

func NewClient

func NewClient(token string) (*Client, error)

NewClient returns a new Buildkite GraphQL client

func (*Client) Do

func (c *Client) Do(query string, vars map[string]interface{}) (*Response, error)

Do sends a GraphQL query with bound variables and returns a Response

func (*Client) GetOrgMembers

func (c *Client) GetOrgMembers(orgSlug string) ([]OrgMember, error)

GetOrgMembers gets org members and their last authorization

type OrgMember

type OrgMember struct {
	ID            string
	Name          string
	Email         string
	Role          string
	Bot           bool
	Complimentary bool
	CreatedAt     time.Time
	Authorization *Authorization
}

type Response

type Response struct {
	*http.Response
}

Response is a GraphQL response

func (*Response) DecodeInto

func (r *Response) DecodeInto(v interface{}) error

DecodeInto decodes a JSON body into the provided type

Jump to

Keyboard shortcuts

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