vault

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCluster

func CheckCluster(ctx context.Context, tx excute.Preparer, dialect excute.SqlExcutor,
	claims *auths.TenantAccessTokenClaims,
	cluster_uuid string,
) error

func CheckManagedChannel

func CheckManagedChannel(ctx context.Context, db excute.Preparer, dialect excute.SqlExcutor, uuid string, tenant_hash string) error

func CreateChannelStatus

func CreateChannelStatus(ctx context.Context, db *sql.DB, dialect excute.SqlExcutor, uuid, message string, created time.Time, max_count uint) error

CreateChannelStatus

func GetManagedChannel

func GetManagedChannel(ctx context.Context, db *sql.DB, dialect excute.SqlExcutor, uuid string, tenant_hash string) (*channelv3.HttpRsp_ManagedChannel, error)

func GetService

func GetService(
	ctx context.Context,
	db excute.Preparer, dialect excute.SqlExcutor,
	cluster_uuid string, uuid string,
) (*service.Service, error)

func GetServiceStep

func GetServiceStep(
	ctx context.Context,
	db excute.Preparer, dialect excute.SqlExcutor,
	cluster_uuid string, uuid string, sequence int,
) (*service.ServiceStep, error)

func GetServiceSteps

func GetServiceSteps(
	ctx context.Context,
	db excute.Preparer, dialect excute.SqlExcutor,
	cluster_uuid string, uuid string,
) ([]service.ServiceStep, error)

func GetServicesPolling

func GetServicesPolling(
	ctx context.Context,
	db excute.Preparer, dialect excute.SqlExcutor,
	cluster_uuid string, polling_offset vanilla.NullTime,
) ([]service.Service_polling, error)

func GetTemplate

func GetTemplate(ctx context.Context, tx excute.Preparer, dialect excute.SqlExcutor,
	template_uuid string,
) (*template.Template, []template.TemplateCommand, error)

func SaveMultiTable

func SaveMultiTable(tx excute.Preparer, dialect excute.SqlExcutor, tables []Table) error

Types

type ServicePolling

type ServicePolling struct {
	Service    service.Service
	LastStatus service.ServiceStatus
}

func GetServicesPolling_v4

func GetServicesPolling_v4(
	ctx context.Context,
	db excute.Preparer, dialect excute.SqlExcutor,
	cluster_uuid string, polling_offset vanilla.NullTime,
) ([]ServicePolling, error)

type Table

type Table interface {
	TableName() string
	Values() []interface{}
	ColumnNames() []string
}

Jump to

Keyboard shortcuts

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