kotsclient

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrForbidden = errors.New("the action is not allowed for the current user or team")
)

Functions

This section is empty.

Types

type AddKOTSRegistryRequest added in v0.40.4

type AddKOTSRegistryRequest struct {
	Provider       string `json:"provider"`
	Endpoint       string `json:"endpoint"`
	AuthType       string `json:"authType"`
	Username       string `json:"username"`
	Password       string `json:"password"`
	SkipValidation bool   `json:"skipValidation"`
}

type AddKOTSRegistryResponse added in v0.40.4

type AddKOTSRegistryResponse struct {
	Registry *types.Registry `json:"external_registry"`
}

type CreateClusterOpts added in v0.44.0

type CreateClusterOpts struct {
	Name                   string
	KubernetesDistribution string
	KubernetesVersion      string
	NodeCount              int
	VCpus                  int64
	MemoryMiB              int64
	TTL                    string
}

type CreateClusterRequest added in v0.44.0

type CreateClusterRequest struct {
	Name                   string `json:"name"`
	KubernetesDistribution string `json:"kubernetes_distribution"`
	KubernetesVersion      string `json:"kubernetes_version"`
	NodeCount              int    `json:"node_count"`
	VCpus                  int64  `json:"vcpus"`
	MemoryMiB              int64  `json:"memory_mib"`
	TTL                    string `json:"ttl"`
}

type CreateClusterResponse added in v0.44.0

type CreateClusterResponse struct {
	Cluster *types.Cluster `json:"cluster"`
}

type CreateCustomerRequest added in v0.29.0

type CreateCustomerRequest struct {
	Name                string `json:"name"`
	ChannelID           string `json:"channel_id"`
	AppID               string `json:"app_id"`
	Type                string `json:"type"`
	ExpiresAt           string `json:"expires_at"`
	IsAirgapEnabled     bool   `json:"is_airgap_enabled"`
	IsGitopsSupported   bool   `json:"is_gitops_supported"`
	IsSnapshotSupported bool   `json:"is_snapshot_supported"`
}

type CreateCustomerResponse added in v0.29.0

type CreateCustomerResponse struct {
	Customer *types.Customer `json:"customer"`
}

type CreateKOTSAppRequest added in v0.31.0

type CreateKOTSAppRequest struct {
	Name string `json:"name"`
}

type CreateKOTSAppResponse added in v0.31.0

type CreateKOTSAppResponse struct {
	App *types.KotsAppWithChannels `json:"app"`
}

type CustomerListResponse added in v0.29.0

type CustomerListResponse struct {
	Customers      []types.Customer `json:"customers"`
	TotalCustomers int              `json:"totalCustomers"`
}

type ErrCustomerNotFound added in v0.29.0

type ErrCustomerNotFound struct {
	Name string
}

func (ErrCustomerNotFound) Error added in v0.29.0

func (e ErrCustomerNotFound) Error() string

type GetClusterKubeconfigResponse added in v0.44.0

type GetClusterKubeconfigResponse struct {
	Kubeconfig []byte `json:"kubeconfig"`
	Error      string `json:"error"`
}

type GraphQLResponseListReleases

type GraphQLResponseListReleases struct {
	Data   *KotsReleasesData  `json:"data,omitempty"`
	Errors []graphql.GQLError `json:"errors,omitempty"`
}

type KOTSRegistryLogsResponse added in v0.40.4

type KOTSRegistryLogsResponse struct {
	RegistryLogs []types.RegistryLog `json:"logs"`
}

type KotsRelease

type KotsRelease struct {
	ID           string               `json:"id"`
	Sequence     int64                `json:"sequence"`
	CreatedAt    string               `json:"created"`
	ReleaseNotes string               `json:"releaseNotes"`
	Channels     []*types.KotsChannel `json:"channels"`
}

type KotsReleasesData

type KotsReleasesData struct {
	KotsReleases []*KotsRelease `json:"allKotsReleases"`
}

type ListChannelsResponse added in v0.31.0

type ListChannelsResponse struct {
	Channels []*types.KotsChannel `json:"channels"`
}

type ListClustersRequest added in v0.44.0

type ListClustersRequest struct {
}

type ListClustersResponse added in v0.44.0

type ListClustersResponse struct {
	Clusters []*types.Cluster `json:"clusters"`
}

type RemoveClusterRequest added in v0.44.0

type RemoveClusterRequest struct {
	ID string `json:"id"`
}

type RemoveClusterResponse added in v0.44.0

type RemoveClusterResponse struct {
	Error string `json:"error"`
}

type TestKOTSRegistryRequest added in v0.40.4

type TestKOTSRegistryRequest struct {
	Endpoint string `json:"endpoint"`
	Image    string `json:"image"`
}

type TestKOTSRegistryResponse added in v0.40.4

type TestKOTSRegistryResponse struct {
	Status int `json:"status"`
}

type VendorV3Client added in v0.31.0

type VendorV3Client struct {
	platformclient.HTTPClient
}

func (*VendorV3Client) AddKOTSRegistry added in v0.40.4

func (c *VendorV3Client) AddKOTSRegistry(reqBody AddKOTSRegistryRequest) (*types.Registry, error)

func (*VendorV3Client) ArchiveChannel added in v0.37.0

func (c *VendorV3Client) ArchiveChannel(appID, channelID string) error

func (*VendorV3Client) CreateChannel added in v0.37.0

func (c *VendorV3Client) CreateChannel(appID, name, description string) (*types.Channel, error)

func (*VendorV3Client) CreateCluster added in v0.44.0

func (c *VendorV3Client) CreateCluster(opts CreateClusterOpts) (*types.Cluster, error)

func (*VendorV3Client) CreateCustomer added in v0.31.0

func (c *VendorV3Client) CreateCustomer(
	name string,
	appID string,
	channelID string,
	expiresIn time.Duration,
	isAirgapEnabled bool,
	isGitopsSupported bool,
	isSnapshotSupported bool,
	licenseType string,
) (*types.Customer, error)

func (*VendorV3Client) CreateInstaller added in v0.37.0

func (c *VendorV3Client) CreateInstaller(appID string, yaml string) (*types.InstallerSpec, error)

func (*VendorV3Client) CreateKOTSApp added in v0.31.0

func (c *VendorV3Client) CreateKOTSApp(name string) (*types.KotsAppWithChannels, error)

func (*VendorV3Client) CreateRelease added in v0.36.1

func (c *VendorV3Client) CreateRelease(appID string, multiyaml string) (*types.ReleaseInfo, error)

func (*VendorV3Client) DeleteKOTSApp added in v0.37.0

func (c *VendorV3Client) DeleteKOTSApp(id string) error

func (*VendorV3Client) DownloadLicense added in v0.31.0

func (c *VendorV3Client) DownloadLicense(appID string, customerID string) ([]byte, error)

func (*VendorV3Client) GetApp added in v0.37.0

func (c *VendorV3Client) GetApp(appID string) (*types.App, error)

func (*VendorV3Client) GetChannel added in v0.34.0

func (c *VendorV3Client) GetChannel(appID string, channelID string) (*types.Channel, error)

func (*VendorV3Client) GetClusterKubeconfig added in v0.44.0

func (c *VendorV3Client) GetClusterKubeconfig(id string) ([]byte, error)

func (*VendorV3Client) GetCustomerByName added in v0.31.0

func (c *VendorV3Client) GetCustomerByName(appID string, name string) (*types.Customer, error)

func (*VendorV3Client) GetRelease added in v0.37.0

func (c *VendorV3Client) GetRelease(appID string, sequence int64) (*releases.AppRelease, error)

func (*VendorV3Client) LintRelease added in v0.37.0

func (c *VendorV3Client) LintRelease(data []byte) ([]types.LintMessage, error)

this is part of the gql client with plans to rename gql client to kotsclient and have endpoints for multiple release services included

func (*VendorV3Client) ListApps added in v0.37.0

func (c *VendorV3Client) ListApps() ([]types.AppAndChannels, error)

func (*VendorV3Client) ListChannels added in v0.31.0

func (c *VendorV3Client) ListChannels(appID string, channelName string) ([]types.Channel, error)

func (*VendorV3Client) ListClusters added in v0.44.0

func (c *VendorV3Client) ListClusters() ([]*types.Cluster, error)

func (*VendorV3Client) ListCustomers added in v0.31.0

func (c *VendorV3Client) ListCustomers(appID string) ([]types.Customer, error)

func (*VendorV3Client) ListInstallers added in v0.37.0

func (c *VendorV3Client) ListInstallers(appID string) ([]types.InstallerSpec, error)

func (*VendorV3Client) ListRegistries added in v0.40.4

func (c *VendorV3Client) ListRegistries() ([]types.Registry, error)

func (*VendorV3Client) ListReleases added in v0.33.2

func (c *VendorV3Client) ListReleases(appID string) ([]types.ReleaseInfo, error)

func (*VendorV3Client) LogsRegistry added in v0.40.4

func (c *VendorV3Client) LogsRegistry(hostname string) ([]types.RegistryLog, error)

func (*VendorV3Client) PromoteInstaller added in v0.37.0

func (c *VendorV3Client) PromoteInstaller(appID string, sequence int64, channelID string, versionLabel string) error

func (*VendorV3Client) PromoteRelease added in v0.37.0

func (c *VendorV3Client) PromoteRelease(appID string, sequence int64, label string, notes string, required bool, channelIDs ...string) error

func (*VendorV3Client) RemoveCluster added in v0.44.0

func (c *VendorV3Client) RemoveCluster(id string, force bool) error

func (*VendorV3Client) RemoveKOTSRegistry added in v0.40.4

func (c *VendorV3Client) RemoveKOTSRegistry(endpoint string) error

func (*VendorV3Client) RemoveRegistry added in v0.40.4

func (c *VendorV3Client) RemoveRegistry(endpoint string) error

func (*VendorV3Client) TestKOTSRegistry added in v0.40.4

func (c *VendorV3Client) TestKOTSRegistry(hostname string, image string) (int, error)

func (*VendorV3Client) TestRelease added in v0.44.0

func (c *VendorV3Client) TestRelease(appID string, sequence int64) (string, error)

func (*VendorV3Client) UpdateRelease added in v0.36.1

func (c *VendorV3Client) UpdateRelease(appID string, sequence int64, multiyaml string) error

func (*VendorV3Client) UpdateSemanticVersioning added in v0.38.0

func (c *VendorV3Client) UpdateSemanticVersioning(appID string, channel *types.Channel, enableSemver bool) error

Jump to

Keyboard shortcuts

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