Remove unused method
Logs are no longer provided by the service (this is a holdover from
the PPC days where service deployments where done in the cloud and it
handled collecting logs).
Removing this breaks another cycle that would be introduced with the
next change (in our test code)
@@ -30,7 +30,6 @@ import (
"github.com/pulumi/pulumi/pkg/diag"
"github.com/pulumi/pulumi/pkg/diag/colors"
"github.com/pulumi/pulumi/pkg/engine"
- "github.com/pulumi/pulumi/pkg/operations"
"github.com/pulumi/pulumi/pkg/resource/config"
"github.com/pulumi/pulumi/pkg/tokens"
"github.com/pulumi/pulumi/pkg/util/contract"
@@ -55,6 +54,11 @@ func NewClient(apiURL, apiToken string, d diag.Sink) *Client {
}
}
+// URL returns the URL of the API endpoint this client interacts with
+func (pc *Client) URL() string {
+ return pc.apiURL
+}
+
// apiCall makes a raw HTTP request to the Pulumi API using the given method, path, and request body.
func (pc *Client) apiCall(ctx context.Context, method, path string, body []byte) (string, *http.Response, error) {
return pulumiAPICall(ctx, pc.diag, pc.apiURL, method, path, body, pc.apiToken, httpCallOptions{})
@@ -291,23 +295,6 @@ func (pc *Client) DecryptValue(ctx context.Context, stack StackIdentifier, ciphe
return resp.Plaintext, nil
}
-// GetStackLogs retrieves the log entries for the indicated stack that match the given query.
-func (pc *Client) GetStackLogs(ctx context.Context, stack StackIdentifier,
- logQuery operations.LogQuery) ([]operations.LogEntry, error) {
-
- var response apitype.LogsResult
- if err := pc.restCall(ctx, "GET", getStackPath(stack, "logs"), logQuery, nil, &response); err != nil {
- return nil, err
- }
-
- logs := make([]operations.LogEntry, 0, len(response.Logs))
- for _, entry := range response.Logs {
- logs = append(logs, operations.LogEntry(entry))
- }
-
- return logs, nil
-}
-
// GetStackUpdates returns all updates to the indicated stack.
func (pc *Client) GetStackUpdates(ctx context.Context, stack StackIdentifier) ([]apitype.UpdateInfo, error) {
var response apitype.GetHistoryResponse
