compliance

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComplianceIngestServer

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

func NewComplianceIngestServer

func NewComplianceIngestServer(automateUrl *url.URL, ingesterClient ingest.ComplianceIngesterClient, notifierClient *notifier.Notifier) *ComplianceIngestServer

func (*ComplianceIngestServer) ProcessComplianceReport

func (s *ComplianceIngestServer) ProcessComplianceReport(ctx context.Context, report *compliance.Report) (*gp.Empty, error)

type Jobs

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

func NewJobsHandler

func NewJobsHandler(jobsClient jobsService.JobsServiceClient) *Jobs

func (*Jobs) AuthContextRead

func (*Jobs) AuthContextRead()

func (*Jobs) Create

func (a *Jobs) Create(ctx context.Context, in *jobs.Job) (*jobs.Id, error)

func (*Jobs) Delete

func (a *Jobs) Delete(ctx context.Context, in *jobs.Id) (*gp.Empty, error)

func (*Jobs) List

func (a *Jobs) List(ctx context.Context, in *jobs.Query) (*jobs.Jobs, error)

func (*Jobs) Read

func (a *Jobs) Read(ctx context.Context, in *jobs.Id) (*jobs.Job, error)

func (*Jobs) Rerun

func (a *Jobs) Rerun(ctx context.Context, in *jobs.Id) (*jobs.RerunResponse, error)

func (*Jobs) Update

func (a *Jobs) Update(ctx context.Context, in *jobs.Job) (*gp.Empty, error)

type Profiles

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

func NewProfilesHandler

func NewProfilesHandler(profilesClient profileService.ProfilesServiceClient) *Profiles

func (*Profiles) Create

func (*Profiles) Delete

func (a *Profiles) Delete(ctx context.Context, in *profiles.ProfileDetails) (*gp.Empty, error)

func (*Profiles) List

func (a *Profiles) List(ctx context.Context, in *profiles.Query) (*profiles.Profiles, error)

func (*Profiles) Read

func (*Profiles) ReadFromMarket

func (a *Profiles) ReadFromMarket(ctx context.Context, in *profiles.ProfileDetails) (*profiles.Profile, error)

type Reporting

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

func (*Reporting) GetVersion

func (a *Reporting) GetVersion(ctx context.Context, in *gp.Empty) (*version.VersionInfo, error)

func (*Reporting) LicenseUsageNodes

func (a *Reporting) LicenseUsageNodes(ctx context.Context, in *reporting.TimeQuery) (*reporting.Reports, error)

LicenseUsageNodes gathers information about scanned nodes (as initiated by scan jobs) for owca billing purposes

func (*Reporting) ListNodes

func (a *Reporting) ListNodes(ctx context.Context, in *reporting.Query) (*reporting.Nodes, error)

func (*Reporting) ListProfiles

func (a *Reporting) ListProfiles(ctx context.Context, in *reporting.Query) (*reporting.ProfileMins, error)

should cover /search/profiles

func (*Reporting) ListReports

func (a *Reporting) ListReports(ctx context.Context, in *reporting.Query) (*reporting.Reports, error)

should cover /reports

func (*Reporting) ListSuggestions

should cover /suggestions

func (*Reporting) ReadNode

func (a *Reporting) ReadNode(ctx context.Context, in *reporting.Id) (*reporting.Node, error)

func (*Reporting) ReadReport

func (a *Reporting) ReadReport(ctx context.Context, in *reporting.Query) (*reporting.Report, error)

should cover /reports/:reportid

type Stats

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

func NewStatsHandler

func NewStatsHandler(statsClient statsService.StatsServiceClient) *Stats

func (*Stats) ReadFailures

func (a *Stats) ReadFailures(ctx context.Context, in *stats.Query) (*stats.Failures, error)

func (*Stats) ReadProfiles

func (a *Stats) ReadProfiles(ctx context.Context, in *stats.Query) (*stats.Profile, error)

should cover /profiles, profiles/:profile-id/summary, profiles/:profile-id/controls

func (*Stats) ReadSummary

func (a *Stats) ReadSummary(ctx context.Context, in *stats.Query) (*stats.Summary, error)

should cover /summary, /summary/nodes, /summary/controls

func (*Stats) ReadTrend

func (a *Stats) ReadTrend(ctx context.Context, in *stats.Query) (*stats.Trends, error)

should cover /trend/nodes, /trend/controls

Jump to

Keyboard shortcuts

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