Versions in this module Expand all Collapse all v1 v1.0.0 Apr 28, 2024 Changes in this version + const BASE_URL + func WithCredentials(credentials string) func(*Client) error + type Build struct + EndedAt string + ID int + Org string + Project string + Sdks []BuildSDK + StartedAt string + Status string + TriggeredBy string + type BuildSDK struct + Language string + Status string + type Client struct + func New(options ...func(*Client) error) (*Client, error) + 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 struct + Generate bool + HasMerged bool + NewSha string + ProjectName string + type GetBuildStatusResponse struct + DiagnosticsFileURL string + EndedAt time.Time + HasGenerated bool + ID uint64 + StartedGeneratingAt time.Time + Status string + type ListApiKeysResponse []struct + type ListBuildsResponse struct + Builds []Build + HasNextPage bool + HasPreviousPage bool + type ListMembersResponse []struct + type ListOrgsResponse struct + EndCursor string + HasNextPage bool + HasPreviousPage bool + Items []OrgItem + StartCursor string + type ListProjectsResponse struct + EndCursor string + HasNextPage bool + HasPreviousPage bool + Items []ProjectItem + StartCursor string + type ListSdksResponse struct + Items []SdkListItem + type OrgItem struct + DisplayName string + Name string + type ProjectItem struct + Name string + Org string + type SdkListItem struct + AutoMergeEnabled bool + CustomCodeInformation struct{ ... } + ID int + InternalRepositoryURL string + IsLive bool + Language string + Org string + Project string + ReleaseInformation struct{ ... }