crud

package
Version: v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(r *data.Repo) *Manager

func (*Manager) Artifacts

func (m *Manager) Artifacts(ctx context.Context) (models []eve.Artifact, err error)

func (*Manager) Clusters

func (m *Manager) Clusters(ctx context.Context) (models []eve.Cluster, err error)

func (*Manager) CreateArtifact

func (m *Manager) CreateArtifact(ctx context.Context, artifact *eve.Artifact) error

func (*Manager) CreateCluster

func (m *Manager) CreateCluster(ctx context.Context, model *eve.Cluster) error

func (Manager) CreateDefinition

func (m Manager) CreateDefinition(ctx context.Context, def *eve.Definition) error

func (*Manager) CreateDefinitionType

func (m *Manager) CreateDefinitionType(ctx context.Context, model *eve.DefinitionType) error

func (*Manager) CreateDeploymentCronJob

func (m *Manager) CreateDeploymentCronJob(ctx context.Context, model *eve.DeploymentCronJob) error

func (*Manager) CreateEnvironment

func (m *Manager) CreateEnvironment(ctx context.Context, model *eve.Environment) error

func (*Manager) CreateEnvironmentFeedMap

func (m *Manager) CreateEnvironmentFeedMap(ctx context.Context, model *eve.EnvironmentFeedMap) error

func (*Manager) CreateFeed

func (m *Manager) CreateFeed(ctx context.Context, model *eve.Feed) error

func (*Manager) CreateJob

func (m *Manager) CreateJob(ctx context.Context, model *eve.Job) error

func (Manager) CreateMetadata

func (m Manager) CreateMetadata(ctx context.Context, metadata *eve.Metadata) error

func (*Manager) CreateMetadataJobMap

func (m *Manager) CreateMetadataJobMap(ctx context.Context, model *eve.MetadataJobMap) error

func (*Manager) CreateMetadataServiceMap

func (m *Manager) CreateMetadataServiceMap(ctx context.Context, model *eve.MetadataServiceMap) error

func (*Manager) CreateNamespace

func (m *Manager) CreateNamespace(ctx context.Context, model *eve.Namespace) error

func (*Manager) CreateService

func (m *Manager) CreateService(ctx context.Context, model *eve.Service) error

func (Manager) DefinitionJobMaps

func (m Manager) DefinitionJobMaps(ctx context.Context) (models []eve.DefinitionJobMap, err error)

func (Manager) DefinitionServiceMaps

func (m Manager) DefinitionServiceMaps(ctx context.Context) (models []eve.DefinitionServiceMap, err error)

func (*Manager) DefinitionTypes

func (m *Manager) DefinitionTypes(ctx context.Context) (models []eve.DefinitionType, err error)

func (Manager) Definitions

func (m Manager) Definitions(ctx context.Context) ([]eve.Definition, error)

func (*Manager) DeleteArtifact

func (m *Manager) DeleteArtifact(ctx context.Context, id int) (err error)

func (*Manager) DeleteCluster

func (m *Manager) DeleteCluster(ctx context.Context, id int) (err error)

func (Manager) DeleteDefinition

func (m Manager) DeleteDefinition(ctx context.Context, id int) error

func (Manager) DeleteDefinitionJobMap

func (m Manager) DeleteDefinitionJobMap(ctx context.Context, definitionID int, description string) error

func (Manager) DeleteDefinitionKey

func (m Manager) DeleteDefinitionKey(ctx context.Context, id int, key string) (eve.Definition, error)

func (Manager) DeleteDefinitionServiceMap

func (m Manager) DeleteDefinitionServiceMap(ctx context.Context, definitionID int, description string) error

func (*Manager) DeleteDefinitionType

func (m *Manager) DeleteDefinitionType(ctx context.Context, id int) (err error)

func (*Manager) DeleteDeploymentCronJob

func (m *Manager) DeleteDeploymentCronJob(ctx context.Context, id string) (err error)

func (*Manager) DeleteEnvironment

func (m *Manager) DeleteEnvironment(ctx context.Context, id int) (err error)

func (*Manager) DeleteEnvironmentFeedMap

func (m *Manager) DeleteEnvironmentFeedMap(ctx context.Context, model *eve.EnvironmentFeedMap) (err error)

func (*Manager) DeleteFeed

func (m *Manager) DeleteFeed(ctx context.Context, id int) (err error)

func (*Manager) DeleteJob

func (m *Manager) DeleteJob(ctx context.Context, id int) (err error)

func (*Manager) DeleteMetadata

func (m *Manager) DeleteMetadata(ctx context.Context, id int) error

func (*Manager) DeleteMetadataJobMap

func (m *Manager) DeleteMetadataJobMap(ctx context.Context, metadataID int, description string) error

func (Manager) DeleteMetadataKey

func (m Manager) DeleteMetadataKey(ctx context.Context, id int, key string) (eve.Metadata, error)

func (*Manager) DeleteMetadataServiceMap

func (m *Manager) DeleteMetadataServiceMap(ctx context.Context, metadataID int, description string) error

func (*Manager) DeleteNamespace

func (m *Manager) DeleteNamespace(ctx context.Context, id int) (err error)

func (*Manager) DeleteService

func (m *Manager) DeleteService(ctx context.Context, id int) (err error)

func (*Manager) Deployment

func (m *Manager) Deployment(ctx context.Context, id string) (*eve.Deployment, error)

func (*Manager) DeploymentCronJobs

func (m *Manager) DeploymentCronJobs(ctx context.Context) (models []eve.DeploymentCronJob, err error)

func (*Manager) Environment

func (m *Manager) Environment(ctx context.Context, id string) (*eve.Environment, error)

func (*Manager) EnvironmentFeedMaps

func (m *Manager) EnvironmentFeedMaps(ctx context.Context) (models []eve.EnvironmentFeedMap, err error)

func (*Manager) Environments

func (m *Manager) Environments(ctx context.Context) ([]eve.Environment, error)

func (*Manager) Feeds

func (m *Manager) Feeds(ctx context.Context) (models []eve.Feed, err error)

func (Manager) GetDefinition

func (m Manager) GetDefinition(ctx context.Context, id string) (*eve.Definition, error)

func (*Manager) GetMetadata

func (m *Manager) GetMetadata(ctx context.Context, id string) (*eve.Metadata, error)

func (*Manager) Job

func (m *Manager) Job(ctx context.Context, id string, namespace string) (*eve.Job, error)

func (Manager) JobDefinitionMapsByDefinitionID

func (m Manager) JobDefinitionMapsByDefinitionID(ctx context.Context, id int) ([]eve.DefinitionJobMap, error)

func (*Manager) JobDefinitionResults

func (m *Manager) JobDefinitionResults(ctx context.Context, id int) (eve.DefinitionResults, error)

func (*Manager) JobMetadata

func (m *Manager) JobMetadata(ctx context.Context, id int) (eve.MetadataField, error)

func (*Manager) JobMetadataMaps

func (m *Manager) JobMetadataMaps(ctx context.Context, id int) ([]eve.MetadataJobMap, error)

func (*Manager) JobMetadataMapsByMetadataID

func (m *Manager) JobMetadataMapsByMetadataID(ctx context.Context, id int) ([]eve.MetadataJobMap, error)

func (*Manager) Jobs

func (m *Manager) Jobs(ctx context.Context) (models []eve.Job, err error)

func (*Manager) JobsByNamespace

func (m *Manager) JobsByNamespace(ctx context.Context, namespaceID string) ([]eve.Job, error)

func (Manager) Metadata

func (m Manager) Metadata(ctx context.Context) ([]eve.Metadata, error)

func (*Manager) MetadataHistory

func (m *Manager) MetadataHistory(ctx context.Context) (models []eve.MetadataHistory, err error)

func (*Manager) MetadataJobMaps

func (m *Manager) MetadataJobMaps(ctx context.Context) ([]eve.MetadataJobMap, error)

func (*Manager) MetadataServiceMaps

func (m *Manager) MetadataServiceMaps(ctx context.Context) ([]eve.MetadataServiceMap, error)

func (*Manager) Namespace

func (m *Manager) Namespace(ctx context.Context, id string) (*eve.Namespace, error)

Namespace id can be an int or the namespace name

func (*Manager) Namespaces

func (m *Manager) Namespaces(ctx context.Context) ([]eve.Namespace, error)

func (*Manager) NamespacesByEnvironment

func (m *Manager) NamespacesByEnvironment(ctx context.Context, environmentID string) ([]eve.Namespace, error)

func (*Manager) Service

func (m *Manager) Service(ctx context.Context, id string, namespace string) (*eve.Service, error)

func (Manager) ServiceDefinitionMapsByDefinitionID

func (m Manager) ServiceDefinitionMapsByDefinitionID(ctx context.Context, id int) ([]eve.DefinitionServiceMap, error)

func (*Manager) ServiceDefinitionResults

func (m *Manager) ServiceDefinitionResults(ctx context.Context, id int) (eve.DefinitionResults, error)

func (*Manager) ServiceDefinitions

func (m *Manager) ServiceDefinitions(ctx context.Context, id int) ([]eve.Definition, error)

func (*Manager) ServiceMetadata

func (m *Manager) ServiceMetadata(ctx context.Context, id int) (eve.MetadataField, error)

func (*Manager) ServiceMetadataMaps

func (m *Manager) ServiceMetadataMaps(ctx context.Context, id int) ([]eve.MetadataServiceMap, error)

func (*Manager) ServiceMetadataMapsByMetadataID

func (m *Manager) ServiceMetadataMapsByMetadataID(ctx context.Context, id int) ([]eve.MetadataServiceMap, error)

func (*Manager) Services

func (m *Manager) Services(ctx context.Context) ([]eve.Service, error)

func (*Manager) ServicesByNamespace

func (m *Manager) ServicesByNamespace(ctx context.Context, namespaceID string) ([]eve.Service, error)

func (*Manager) UpdateArtifact

func (m *Manager) UpdateArtifact(ctx context.Context, model *eve.Artifact) (err error)

func (*Manager) UpdateCluster

func (m *Manager) UpdateCluster(ctx context.Context, model *eve.Cluster) (err error)

func (*Manager) UpdateDefinitionType

func (m *Manager) UpdateDefinitionType(ctx context.Context, model *eve.DefinitionType) (err error)

func (*Manager) UpdateDeploymentCronJob

func (m *Manager) UpdateDeploymentCronJob(ctx context.Context, model *eve.DeploymentCronJob) (err error)

func (*Manager) UpdateEnvironment

func (m *Manager) UpdateEnvironment(ctx context.Context, e *eve.Environment) (*eve.Environment, error)

func (*Manager) UpdateEnvironmentFeedMap

func (m *Manager) UpdateEnvironmentFeedMap(ctx context.Context, model *eve.EnvironmentFeedMap) (err error)

func (*Manager) UpdateFeed

func (m *Manager) UpdateFeed(ctx context.Context, model *eve.Feed) (err error)

func (*Manager) UpdateJob

func (m *Manager) UpdateJob(ctx context.Context, j *eve.Job) (*eve.Job, error)

func (*Manager) UpdateNamespace

func (m *Manager) UpdateNamespace(ctx context.Context, n *eve.Namespace) (*eve.Namespace, error)

func (*Manager) UpdateService

func (m *Manager) UpdateService(ctx context.Context, s *eve.Service) (*eve.Service, error)

func (Manager) UpsertDefinitionJobMap

func (m Manager) UpsertDefinitionJobMap(ctx context.Context, e *eve.DefinitionJobMap) error

func (Manager) UpsertDefinitionServiceMap

func (m Manager) UpsertDefinitionServiceMap(ctx context.Context, serviceMap *eve.DefinitionServiceMap) error

func (Manager) UpsertMergeDefinition

func (m Manager) UpsertMergeDefinition(ctx context.Context, def *eve.Definition) error

func (Manager) UpsertMergeMetadata

func (m Manager) UpsertMergeMetadata(ctx context.Context, metadata *eve.Metadata) error

func (*Manager) UpsertMetadataJobMap

func (m *Manager) UpsertMetadataJobMap(ctx context.Context, e *eve.MetadataJobMap) error

func (*Manager) UpsertMetadataServiceMap

func (m *Manager) UpsertMetadataServiceMap(ctx context.Context, serviceMap *eve.MetadataServiceMap) error

Jump to

Keyboard shortcuts

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