client

package
v0.0.0-...-4dffdd2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Apache Score Copyright 2020 The Apache Software Foundation

This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

Apache Score Copyright 2020 The Apache Software Foundation

This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

Apache Score Copyright 2020 The Apache Software Foundation

This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

Apache Score Copyright 2020 The Apache Software Foundation

This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

Apache Score Copyright 2020 The Apache Software Foundation

This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

Index

Constants

This section is empty.

Variables

View Source
var (
	ScoreUserAgent = fmt.Sprintf("score-humanitec/%s", version.Version)
)

Functions

This section is empty.

Types

type Client

type Client interface {

	// Resources
	//
	ListResourceTypes(ctx context.Context, orgID string) ([]humanitec.ResourceType, error)

	// Deployment Deltas
	//
	CreateDelta(ctx context.Context, orgID, appID string, delta *humanitec.CreateDeploymentDeltaRequest) (*humanitec.DeploymentDelta, error)
	UpdateDelta(ctx context.Context, orgID string, appID string, deltaID string, deltas []*humanitec.UpdateDeploymentDeltaRequest) (*humanitec.DeploymentDelta, error)

	// Deployments
	//
	StartDeployment(ctx context.Context, orgID, appID, envID string, retry bool, deployment *humanitec.StartDeploymentRequest) (*humanitec.Deployment, error)
}

Client describes Humanitec API client functionality.

func NewClient

func NewClient(url, token string, httpClient *http.Client) (Client, error)

NewClient constructs new Humanitec API client.

Jump to

Keyboard shortcuts

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