Documentation
¶
Index ¶
- Constants
- func WithCredentials(credentials string) func(*Client) error
- type Build
- type BuildSDK
- type Client
- func (client *Client) Do(req *http.Request) (*http.Response, error)
- func (client *Client) GenerateSdk(orgName, projectName, openApiSpec, stainlessConfig, outDir, language string) (*GenerateResponse, error)
- func (client *Client) GetBuildStatus(orgName, projectName, language, branch string) (*GetBuildStatusResponse, error)
- func (client *Client) GetDefaultOrg() (string, error)
- func (client *Client) GetDefaultProject(orgName string) (string, error)
- func (client *Client) ListApiKeys(orgName string) (*ListApiKeysResponse, error)
- func (client *Client) ListBuilds(orgName, projectName string) (*ListBuildsResponse, error)
- func (client *Client) ListMembers(orgName string) (*ListMembersResponse, error)
- func (client *Client) ListOrgs() (*ListOrgsResponse, error)
- func (client *Client) ListProjects(orgName string) (*ListProjectsResponse, error)
- func (client *Client) ListSdks(orgName, projectName string) (*ListSdksResponse, error)
- func (client *Client) NewStainlessApiURL(orgName, projectName, path string) string
- func (client *Client) Request(method, url string, body io.Reader) (*http.Request, error)
- type GenerateResponse
- type GetBuildStatusResponse
- type ListApiKeysResponse
- type ListBuildsResponse
- type ListMembersResponse
- type ListOrgsResponse
- type ListProjectsResponse
- type ListSdksResponse
- type OrgItem
- type ProjectItem
- type SdkListItem
Constants ¶
View Source
const BASE_URL string = "https://api.stainlessapi.com/api"
Variables ¶
This section is empty.
Functions ¶
func WithCredentials ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GenerateSdk ¶
func (client *Client) GenerateSdk(orgName, projectName, openApiSpec, stainlessConfig, outDir, language string) (*GenerateResponse, error)
func (*Client) GetBuildStatus ¶
func (client *Client) GetBuildStatus(orgName, projectName, language, branch string) (*GetBuildStatusResponse, error)
func (*Client) GetDefaultOrg ¶
func (*Client) GetDefaultProject ¶
func (*Client) ListApiKeys ¶
func (client *Client) ListApiKeys(orgName string) (*ListApiKeysResponse, error)
func (*Client) ListBuilds ¶
func (client *Client) ListBuilds(orgName, projectName string) (*ListBuildsResponse, error)
func (*Client) ListMembers ¶
func (client *Client) ListMembers(orgName string) (*ListMembersResponse, error)
func (*Client) ListOrgs ¶
func (client *Client) ListOrgs() (*ListOrgsResponse, error)
func (*Client) ListProjects ¶
func (client *Client) ListProjects(orgName string) (*ListProjectsResponse, error)
func (*Client) ListSdks ¶
func (client *Client) ListSdks(orgName, projectName string) (*ListSdksResponse, error)
func (*Client) NewStainlessApiURL ¶
type GenerateResponse ¶
type GetBuildStatusResponse ¶
type ListApiKeysResponse ¶
type ListApiKeysResponse []struct { ID string `json:"id"` Key string `json:"key"` Name string `json:"name"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt time.Time `json:"deletedAt"` CreatedByUser struct { Name string `json:"name"` Email string `json:"email"` ImageURL string `json:"imageURL"` } `json:"createdByUser"` }
type ListBuildsResponse ¶
type ListMembersResponse ¶
type ListOrgsResponse ¶
type ListProjectsResponse ¶
type ListProjectsResponse struct { StartCursor string `json:"startCursor"` EndCursor string `json:"EndCursor"` HasNextPage bool `json:"hasNextPage"` HasPreviousPage bool `json:"hasPreviousPage"` Items []ProjectItem `json:"items"` }
type ListSdksResponse ¶
type ListSdksResponse struct {
Items []SdkListItem `json:"items"`
}
type ProjectItem ¶
type SdkListItem ¶
type SdkListItem struct { ID int `json:"id"` Org string `json:"org"` Project string `json:"project"` Language string `json:"language"` InternalRepositoryURL string `json:"internalRepositoryUrl"` AutoMergeEnabled bool `json:"autoMergeEnabled"` IsLive bool `json:"isLive"` ReleaseInformation struct { PackageName string `json:"packageName"` Repo string `json:"repo"` } `json:"releaseInformation"` CustomCodeInformation struct { GistURL string `json:"gistUrl"` LinesAdded int `json:"linesAdded"` LinesRemoved int `json:"linesRemoved"` } `json:"customCodeInformation"` }
Click to show internal directories.
Click to hide internal directories.