Documentation
¶
Overview ¶
Package client implements a client for the Pulumi Service HTTP/REST API. Important note: This client is not versioned, and not intended for external use at this time.
Index ¶
- type CheckEnvironmentResponse
- type Client
- func (pc *Client) CheckYAMLEnvironment(ctx context.Context, orgName string, yaml []byte) (*esc.Environment, []EnvironmentDiagnostic, error)
- func (pc *Client) CreateEnvironment(ctx context.Context, orgName, envName string) error
- func (pc *Client) DeleteEnvironment(ctx context.Context, orgName, envName string) error
- func (pc *Client) GetEnvironment(ctx context.Context, orgName, envName string) ([]byte, string, error)
- func (pc *Client) GetOpenEnvironment(ctx context.Context, openEnvID string) (*esc.Environment, error)
- func (pc *Client) GetOpenProperty(ctx context.Context, openEnvID, property string) (*esc.Value, error)
- func (pc *Client) GetPulumiAccountDetails(ctx context.Context) (string, []string, *workspace.TokenInformation, error)
- func (pc *Client) Insecure() bool
- func (pc *Client) ListEnvironments(ctx context.Context, orgName string) ([]string, error)
- func (pc *Client) OpenEnvironment(ctx context.Context, orgName string, envName string, duration time.Duration) (string, []EnvironmentDiagnostic, error)
- func (pc *Client) OpenYAMLEnvironment(ctx context.Context, orgName string, yaml []byte, duration time.Duration) (string, []EnvironmentDiagnostic, error)
- func (pc *Client) URL() string
- func (pc *Client) UpdateEnvironment(ctx context.Context, orgName string, envName string, yaml []byte, tag string) ([]EnvironmentDiagnostic, error)
- type EnvironmentDiagnostic
- type EnvironmentDiagnosticsResponse
- type ListEnvironmentsResponse
- type OpenEnvironmentResponse
- type UpdateEnvironmentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckEnvironmentResponse ¶
type CheckEnvironmentResponse struct {
Diagnostics []EnvironmentDiagnostic `json:"diagnostics,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a slim wrapper around the Pulumi HTTP/REST API.
func (*Client) CheckYAMLEnvironment ¶
func (pc *Client) CheckYAMLEnvironment( ctx context.Context, orgName string, yaml []byte, ) (*esc.Environment, []EnvironmentDiagnostic, error)
func (*Client) CreateEnvironment ¶
func (*Client) DeleteEnvironment ¶
func (*Client) GetEnvironment ¶
func (*Client) GetOpenEnvironment ¶
func (*Client) GetOpenProperty ¶
func (*Client) GetPulumiAccountDetails ¶
func (pc *Client) GetPulumiAccountDetails(ctx context.Context) (string, []string, *workspace.TokenInformation, error)
GetPulumiAccountName returns the user implied by the API token associated with this client.
func (*Client) ListEnvironments ¶
func (*Client) OpenEnvironment ¶
func (*Client) OpenYAMLEnvironment ¶
type EnvironmentDiagnostic ¶
type EnvironmentDiagnosticsResponse ¶
type EnvironmentDiagnosticsResponse struct {
Diagnostics []EnvironmentDiagnostic `json:"diagnostics,omitempty"`
}
func (EnvironmentDiagnosticsResponse) Error ¶
func (err EnvironmentDiagnosticsResponse) Error() string
Error implements the Error interface.
type ListEnvironmentsResponse ¶
type ListEnvironmentsResponse struct {
Environments []string `json:"environments,omitempty"`
}
type OpenEnvironmentResponse ¶
type OpenEnvironmentResponse struct {
ID string `json:"id"`
Diagnostics []EnvironmentDiagnostic `json:"diagnostics,omitempty"`
}
type UpdateEnvironmentResponse ¶
type UpdateEnvironmentResponse struct {
EnvironmentDiagnosticsResponse
}
Click to show internal directories.
Click to hide internal directories.