servicelayer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactoryData

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

func (*ArtifactoryData) ArtifactoryValidations

func (s *ArtifactoryData) ArtifactoryValidations(ctx context.Context, serverId string) error

func (*ArtifactoryData) GetConfig

func (s *ArtifactoryData) GetConfig(ctx context.Context, serverId string) (*model.Config, error)

func (*ArtifactoryData) GetLastPageMarker

func (s *ArtifactoryData) GetLastPageMarker() int64

func (*ArtifactoryData) GetLogData

func (s *ArtifactoryData) GetLogData(ctx context.Context, serverId string) (logData model.Data, err error)

func (*ArtifactoryData) GetLogFileName

func (s *ArtifactoryData) GetLogFileName() string

func (*ArtifactoryData) GetLogsRefreshRate

func (s *ArtifactoryData) GetLogsRefreshRate() time.Duration

func (*ArtifactoryData) GetNodeId

func (s *ArtifactoryData) GetNodeId() string

func (*ArtifactoryData) SetLastPageMarker

func (s *ArtifactoryData) SetLastPageMarker(pageMarker int64)

func (*ArtifactoryData) SetLogFileName

func (s *ArtifactoryData) SetLogFileName(logFileName string)

func (*ArtifactoryData) SetLogsRefreshRate

func (s *ArtifactoryData) SetLogsRefreshRate(logsRefreshRate time.Duration)

func (*ArtifactoryData) SetNodeId

func (s *ArtifactoryData) SetNodeId(nodeId string)

type DistributionData

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

func (*DistributionData) DistributionValidations

func (s *DistributionData) DistributionValidations(ctx context.Context, serverId string) error

func (*DistributionData) GetConfig

func (s *DistributionData) GetConfig(ctx context.Context, serverId string) (*model.Config, error)

func (*DistributionData) GetLastPageMarker

func (s *DistributionData) GetLastPageMarker() int64

func (*DistributionData) GetLogData

func (s *DistributionData) GetLogData(ctx context.Context, serverId string) (logData model.Data, err error)

func (*DistributionData) GetLogFileName

func (s *DistributionData) GetLogFileName() string

func (*DistributionData) GetLogsRefreshRate

func (s *DistributionData) GetLogsRefreshRate() time.Duration

func (*DistributionData) GetNodeId

func (s *DistributionData) GetNodeId() string

func (*DistributionData) SetLastPageMarker

func (s *DistributionData) SetLastPageMarker(pageMarker int64)

func (*DistributionData) SetLogFileName

func (s *DistributionData) SetLogFileName(logFileName string)

func (*DistributionData) SetLogsRefreshRate

func (s *DistributionData) SetLogsRefreshRate(logsRefreshRate time.Duration)

func (*DistributionData) SetNodeId

func (s *DistributionData) SetNodeId(nodeId string)

type McData

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

func (*McData) GetConfig

func (s *McData) GetConfig(ctx context.Context, serverId string) (*model.Config, error)

func (*McData) GetLastPageMarker

func (s *McData) GetLastPageMarker() int64

func (*McData) GetLogData

func (s *McData) GetLogData(ctx context.Context, serverId string) (logData model.Data, err error)

func (*McData) GetLogFileName

func (s *McData) GetLogFileName() string

func (*McData) GetLogsRefreshRate

func (s *McData) GetLogsRefreshRate() time.Duration

func (*McData) GetNodeId

func (s *McData) GetNodeId() string

func (*McData) SetLastPageMarker

func (s *McData) SetLastPageMarker(pageMarker int64)

func (*McData) SetLogFileName

func (s *McData) SetLogFileName(logFileName string)

func (*McData) SetLogsRefreshRate

func (s *McData) SetLogsRefreshRate(logsRefreshRate time.Duration)

func (*McData) SetNodeId

func (s *McData) SetNodeId(nodeId string)

type PipelinesData

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

func (*PipelinesData) GetConfig

func (s *PipelinesData) GetConfig(ctx context.Context, serverId string) (*model.Config, error)

func (*PipelinesData) GetLastPageMarker

func (s *PipelinesData) GetLastPageMarker() int64

func (*PipelinesData) GetLogData

func (s *PipelinesData) GetLogData(ctx context.Context, serverId string) (logData model.Data, err error)

func (*PipelinesData) GetLogFileName

func (s *PipelinesData) GetLogFileName() string

func (*PipelinesData) GetLogsRefreshRate

func (s *PipelinesData) GetLogsRefreshRate() time.Duration

func (*PipelinesData) GetNodeId

func (s *PipelinesData) GetNodeId() string

func (*PipelinesData) PipelinesValidations

func (s *PipelinesData) PipelinesValidations(ctx context.Context, serverId string) error

func (*PipelinesData) SetLastPageMarker

func (s *PipelinesData) SetLastPageMarker(pageMarker int64)

func (*PipelinesData) SetLogFileName

func (s *PipelinesData) SetLogFileName(logFileName string)

func (*PipelinesData) SetLogsRefreshRate

func (s *PipelinesData) SetLogsRefreshRate(logsRefreshRate time.Duration)

func (*PipelinesData) SetNodeId

func (s *PipelinesData) SetNodeId(nodeId string)

type ServiceLayer

type ServiceLayer interface {
	// Queries and returns the livelog configuration from the remote service, based on the set node id.
	GetConfig(ctx context.Context, serverId string) (*model.Config, error)

	// Queries and returns the livelog data from the remote service, based on the set node id and log file name.
	GetLogData(ctx context.Context, serverId string) (model.Data, error)

	// Sets the node id to use when querying the remote service for log data.
	SetNodeId(nodeId string)
	GetNodeId() string

	// Sets the log file name to use when querying the remote service for log data.
	SetLogFileName(logFileName string)
	GetLogFileName() string

	// Sets the refresh rate interval between each log request.
	SetLogsRefreshRate(logsRefreshRate time.Duration)
	GetLogsRefreshRate() time.Duration

	// Sets the file size between each log request.
	SetLastPageMarker(pageMarker int64)
	GetLastPageMarker() int64
}

func NewService

func NewService(productId string) (serviceLayer ServiceLayer, err error)

type XrayData

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

func (*XrayData) GetConfig

func (s *XrayData) GetConfig(ctx context.Context, serverId string) (*model.Config, error)

func (*XrayData) GetLastPageMarker

func (s *XrayData) GetLastPageMarker() int64

func (*XrayData) GetLogData

func (s *XrayData) GetLogData(ctx context.Context, serverId string) (logData model.Data, err error)

func (*XrayData) GetLogFileName

func (s *XrayData) GetLogFileName() string

func (*XrayData) GetLogsRefreshRate

func (s *XrayData) GetLogsRefreshRate() time.Duration

func (*XrayData) GetNodeId

func (s *XrayData) GetNodeId() string

func (*XrayData) SetLastPageMarker

func (s *XrayData) SetLastPageMarker(pageMarker int64)

func (*XrayData) SetLogFileName

func (s *XrayData) SetLogFileName(logFileName string)

func (*XrayData) SetLogsRefreshRate

func (s *XrayData) SetLogsRefreshRate(logsRefreshRate time.Duration)

func (*XrayData) SetNodeId

func (s *XrayData) SetNodeId(nodeId string)

func (*XrayData) XrayValidations

func (s *XrayData) XrayValidations(ctx context.Context, serverId string) error

Jump to

Keyboard shortcuts

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