travis

package
v0.0.0-...-c78bbdf Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(value bool) *bool

func String

func String(value string) *string

Types

type Client

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

func NewClient

func NewClient(accessToken *string) *Client

func NewProClient

func NewProClient(accessToken *string) *Client

func (*Client) CreateEnvironmentVariable

func (tc *Client) CreateEnvironmentVariable(repoId int, e *EnvironmentVariable) (*EnvironmentVariable, error)

func (*Client) Delete

func (tc *Client) Delete(path string) ([]byte, error)

func (*Client) DestroyEnvironmentVariable

func (tc *Client) DestroyEnvironmentVariable(repoId int, envVarId string) error

func (*Client) Get

func (tc *Client) Get(path string) ([]byte, error)

func (*Client) GetRepository

func (tc *Client) GetRepository(owner, name string) (*Repository, error)

func (*Client) GetRepositorySettings

func (tc *Client) GetRepositorySettings(repoId int) (settings *RepositorySettings, err error)

func (*Client) ListEnvironmentVariables

func (tc *Client) ListEnvironmentVariables(repoId int) ([]EnvironmentVariable, error)

func (*Client) Patch

func (tc *Client) Patch(path string, body interface{}) ([]byte, error)

func (*Client) Post

func (tc *Client) Post(path string, body interface{}) ([]byte, error)

func (*Client) UpdateEnvironmentVariable

func (tc *Client) UpdateEnvironmentVariable(repoId int, envVarId string, e *EnvironmentVariable) (*EnvironmentVariable, error)

func (*Client) UpdateRepositorySettings

func (tc *Client) UpdateRepositorySettings(repoId int, settings *RepositorySettings) (*RepositorySettings, error)

type EnvironmentVariable

type EnvironmentVariable struct {
	ID           *string `json:"id,omitempty"`
	Name         *string `json:"name,omitempty"`
	Value        *string `json:"value,omitempty"`
	Public       *bool   `json:"public,omitempty"`
	RepositoryID int     `json:"repository_id,omitempty"`
}

type Repository

type Repository struct {
	ID             int     `json:"id,omitempty"`
	Slug           *string `json:"slug,omitempty"`
	Description    *string `json:"description,omitempty"`
	GithubLanguage *string `json:"github_language,omitempty"`
}

type RepositorySettings

type RepositorySettings struct {
	BuildsOnlyWithTravisYml *bool `json:"builds_only_with_travis_yml,omitempty"`
	BuildPushes             *bool `json:"build_pushes,omitempty"`
	BuildPullRequests       *bool `json:"build_pull_requests,omitempty"`
	MaximumNumberOfBuilds   *int  `json:"maximum_number_of_builds,omitempty"`
}

Jump to

Keyboard shortcuts

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