segment

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteSource added in v2.25.0

type DeleteSource interface {
	List(ctx context.Context) (api.Response, error)
	Delete(ctx context.Context, id string) (api.Response, error)
}

type Deleter added in v2.24.1

type Deleter struct {
	// contains filtered or unexported fields
}

func NewDeleter added in v2.24.1

func NewDeleter(source DeleteSource) *Deleter

func (Deleter) Delete added in v2.24.1

func (d Deleter) Delete(ctx context.Context, dps []pointer.DeletePointer) error

func (Deleter) DeleteAll added in v2.24.1

func (d Deleter) DeleteAll(ctx context.Context) error

type DeployAPI added in v2.24.0

type DeployAPI struct {
	// contains filtered or unexported fields
}

func NewDeployAPI added in v2.24.0

func NewDeployAPI(source DeploySource) *DeployAPI

func (DeployAPI) Deploy added in v2.24.0

func (d DeployAPI) Deploy(ctx context.Context, properties parameter.Properties, renderedConfig string, c *config.Config) (entities.ResolvedEntity, error)

type DeploySource added in v2.24.0

type DeploySource interface {
	Update(ctx context.Context, id string, data []byte) (api.Response, error)
	Create(ctx context.Context, data []byte) (api.Response, error)
	List(ctx context.Context) (api.Response, error)
}

type DownloadAPI added in v2.24.0

type DownloadAPI struct {
	// contains filtered or unexported fields
}

func NewDownloadAPI added in v2.24.0

func NewDownloadAPI(segmentSource DownloadSource) *DownloadAPI

func (DownloadAPI) Download added in v2.24.0

func (a DownloadAPI) Download(ctx context.Context, projectName string) (project.ConfigsPerType, error)

type DownloadSource added in v2.24.0

type DownloadSource interface {
	GetAll(ctx context.Context) ([]api.Response, error)
}

Jump to

Keyboard shortcuts

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