graphql

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAPI

type AccountAPI interface {
	UpdateCsdpSettings(ctx context.Context, gitProvider platmodel.GitProviders, gitApiUrl, sharedConfigRepo string) error
}

type CliReleaseAPI

type CliReleaseAPI interface {
	GetLatest(ctx context.Context) (string, error)
}

type ClusterAPI

type ClusterAPI interface {
	List(ctx context.Context, runtime string) ([]platmodel.Cluster, error)
}

type ComponentAPI

type ComponentAPI interface {
	List(ctx context.Context, runtimeName string) ([]platmodel.Component, error)
}

type GitSourceAPI

type GitSourceAPI interface {
	List(ctc context.Context, runtimeName string) ([]platmodel.GitSource, error)
}

type GraphQLAPI

type GraphQLAPI interface {
	Account() AccountAPI
	CliRelease() CliReleaseAPI
	Cluster() ClusterAPI
	Component() ComponentAPI
	GitSource() GitSourceAPI
	Pipeline() PipelineAPI
	Runtime() RuntimeAPI
	User() UserAPI
	Workflow() WorkflowAPI
}

func NewGraphQLClient

func NewGraphQLClient(c *client.CfClient) GraphQLAPI

type PipelineAPI

type PipelineAPI interface {
	Get(ctx context.Context, name, namespace, runtime string) (*platmodel.Pipeline, error)
	List(ctx context.Context, filterArgs platmodel.PipelinesFilterArgs) ([]platmodel.Pipeline, error)
}

type RuntimeAPI

type RuntimeAPI interface {
	Create(ctx context.Context, opts *platmodel.RuntimeInstallationArgs) (*platmodel.RuntimeCreationResponse, error)
	Delete(ctx context.Context, runtimeName string) (int, error)
	DeleteManaged(ctx context.Context, runtimeName string) (int, error)
	Get(ctx context.Context, name string) (*platmodel.Runtime, error)
	List(ctx context.Context) ([]platmodel.Runtime, error)
	MigrateRuntime(ctx context.Context, runtimeName string) error
	ReportErrors(ctx context.Context, opts *platmodel.ReportRuntimeErrorsArgs) (int, error)
	SetSharedConfigRepo(ctx context.Context, suggestedSharedConfigRepo string) (string, error)
}

type UserAPI

type UserAPI interface {
	GetCurrent(ctx context.Context) (*platmodel.User, error)
}

type WorkflowAPI

type WorkflowAPI interface {
	Get(ctx context.Context, uid string) (*platmodel.Workflow, error)
	List(ctx context.Context, filterArgs platmodel.WorkflowsFilterArgs) ([]platmodel.Workflow, error)
}

Jump to

Keyboard shortcuts

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