profiles

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: 19 Imported by: 0

Documentation

Overview

Package profiles is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Query_OrderType_name = map[int32]string{
	0: "ASC",
	1: "DESC",
}
View Source
var Query_OrderType_value = map[string]int32{
	"ASC":  0,
	"DESC": 1,
}

Functions

func RegisterProfilesServiceHandler

func RegisterProfilesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProfilesServiceHandler registers the http handlers for service ProfilesService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProfilesServiceHandlerClient

func RegisterProfilesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfilesServiceClient) error

RegisterProfilesServiceHandlerClient registers the http handlers for service ProfilesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfilesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfilesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfilesServiceClient" to call the correct interceptors.

func RegisterProfilesServiceHandlerFromEndpoint

func RegisterProfilesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProfilesServiceHandlerFromEndpoint is same as RegisterProfilesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProfilesServiceServer

func RegisterProfilesServiceServer(s *grpc.Server, srv ProfilesServiceServer)

Types

type Attribute

type Attribute struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Options              *Option  `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Attribute) Descriptor

func (*Attribute) Descriptor() ([]byte, []int)

func (*Attribute) GetName

func (m *Attribute) GetName() string

func (*Attribute) GetOptions

func (m *Attribute) GetOptions() *Option

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) Reset

func (m *Attribute) Reset()

func (*Attribute) String

func (m *Attribute) String() string

func (*Attribute) XXX_DiscardUnknown

func (m *Attribute) XXX_DiscardUnknown()

func (*Attribute) XXX_Marshal

func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Attribute) XXX_Merge

func (dst *Attribute) XXX_Merge(src proto.Message)

func (*Attribute) XXX_Size

func (m *Attribute) XXX_Size() int

func (*Attribute) XXX_Unmarshal

func (m *Attribute) XXX_Unmarshal(b []byte) error

type CheckMessage

type CheckMessage struct {
	File                 string   `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	Line                 int32    `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	Column               int32    `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
	ControlId            string   `protobuf:"bytes,4,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
	Msg                  string   `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckMessage) Descriptor

func (*CheckMessage) Descriptor() ([]byte, []int)

func (*CheckMessage) GetColumn

func (m *CheckMessage) GetColumn() int32

func (*CheckMessage) GetControlId

func (m *CheckMessage) GetControlId() string

func (*CheckMessage) GetFile

func (m *CheckMessage) GetFile() string

func (*CheckMessage) GetLine

func (m *CheckMessage) GetLine() int32

func (*CheckMessage) GetMsg

func (m *CheckMessage) GetMsg() string

func (*CheckMessage) ProtoMessage

func (*CheckMessage) ProtoMessage()

func (*CheckMessage) Reset

func (m *CheckMessage) Reset()

func (*CheckMessage) String

func (m *CheckMessage) String() string

func (*CheckMessage) XXX_DiscardUnknown

func (m *CheckMessage) XXX_DiscardUnknown()

func (*CheckMessage) XXX_Marshal

func (m *CheckMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckMessage) XXX_Merge

func (dst *CheckMessage) XXX_Merge(src proto.Message)

func (*CheckMessage) XXX_Size

func (m *CheckMessage) XXX_Size() int

func (*CheckMessage) XXX_Unmarshal

func (m *CheckMessage) XXX_Unmarshal(b []byte) error

type CheckResult

type CheckResult struct {
	Summary              *ResultSummary  `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
	Errors               []*CheckMessage `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
	Warnings             []*CheckMessage `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*CheckResult) Descriptor

func (*CheckResult) Descriptor() ([]byte, []int)

func (*CheckResult) GetErrors

func (m *CheckResult) GetErrors() []*CheckMessage

func (*CheckResult) GetSummary

func (m *CheckResult) GetSummary() *ResultSummary

func (*CheckResult) GetWarnings

func (m *CheckResult) GetWarnings() []*CheckMessage

func (*CheckResult) ProtoMessage

func (*CheckResult) ProtoMessage()

func (*CheckResult) Reset

func (m *CheckResult) Reset()

func (*CheckResult) String

func (m *CheckResult) String() string

func (*CheckResult) XXX_DiscardUnknown

func (m *CheckResult) XXX_DiscardUnknown()

func (*CheckResult) XXX_Marshal

func (m *CheckResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckResult) XXX_Merge

func (dst *CheckResult) XXX_Merge(src proto.Message)

func (*CheckResult) XXX_Size

func (m *CheckResult) XXX_Size() int

func (*CheckResult) XXX_Unmarshal

func (m *CheckResult) XXX_Unmarshal(b []byte) error

type Chunk

type Chunk struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Position             int64    `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Chunk) Descriptor

func (*Chunk) Descriptor() ([]byte, []int)

func (*Chunk) GetData

func (m *Chunk) GetData() []byte

func (*Chunk) GetPosition

func (m *Chunk) GetPosition() int64

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) Reset

func (m *Chunk) Reset()

func (*Chunk) String

func (m *Chunk) String() string

func (*Chunk) XXX_DiscardUnknown

func (m *Chunk) XXX_DiscardUnknown()

func (*Chunk) XXX_Marshal

func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chunk) XXX_Merge

func (dst *Chunk) XXX_Merge(src proto.Message)

func (*Chunk) XXX_Size

func (m *Chunk) XXX_Size() int

func (*Chunk) XXX_Unmarshal

func (m *Chunk) XXX_Unmarshal(b []byte) error

type Control

type Control struct {
	Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Code                 string            `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Desc                 string            `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	Impact               float32           `protobuf:"fixed32,4,opt,name=impact,proto3" json:"impact,omitempty"`
	Title                string            `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	SourceLocation       *SourceLocation   `protobuf:"bytes,6,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"`
	Results              []*Result         `protobuf:"bytes,7,rep,name=results,proto3" json:"results,omitempty"`
	Refs                 []*Ref            `protobuf:"bytes,8,rep,name=refs,proto3" json:"refs,omitempty"`
	Tags                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Control) Descriptor

func (*Control) Descriptor() ([]byte, []int)

func (*Control) GetCode

func (m *Control) GetCode() string

func (*Control) GetDesc

func (m *Control) GetDesc() string

func (*Control) GetId

func (m *Control) GetId() string

func (*Control) GetImpact

func (m *Control) GetImpact() float32

func (*Control) GetRefs

func (m *Control) GetRefs() []*Ref

func (*Control) GetResults

func (m *Control) GetResults() []*Result

func (*Control) GetSourceLocation

func (m *Control) GetSourceLocation() *SourceLocation

func (*Control) GetTags

func (m *Control) GetTags() map[string]string

func (*Control) GetTitle

func (m *Control) GetTitle() string

func (*Control) ProtoMessage

func (*Control) ProtoMessage()

func (*Control) Reset

func (m *Control) Reset()

func (*Control) String

func (m *Control) String() string

func (*Control) XXX_DiscardUnknown

func (m *Control) XXX_DiscardUnknown()

func (*Control) XXX_Marshal

func (m *Control) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Control) XXX_Merge

func (dst *Control) XXX_Merge(src proto.Message)

func (*Control) XXX_Size

func (m *Control) XXX_Size() int

func (*Control) XXX_Unmarshal

func (m *Control) XXX_Unmarshal(b []byte) error

type Dependency

type Dependency struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Path                 string   `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Git                  string   `protobuf:"bytes,4,opt,name=git,proto3" json:"git,omitempty"`
	Branch               string   `protobuf:"bytes,5,opt,name=branch,proto3" json:"branch,omitempty"`
	Tag                  string   `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
	Commit               string   `protobuf:"bytes,7,opt,name=commit,proto3" json:"commit,omitempty"`
	Version              string   `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`
	Supermarket          string   `protobuf:"bytes,9,opt,name=supermarket,proto3" json:"supermarket,omitempty"`
	Github               string   `protobuf:"bytes,10,opt,name=github,proto3" json:"github,omitempty"`
	Compliance           string   `protobuf:"bytes,11,opt,name=compliance,proto3" json:"compliance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Dependency) Descriptor

func (*Dependency) Descriptor() ([]byte, []int)

func (*Dependency) GetBranch

func (m *Dependency) GetBranch() string

func (*Dependency) GetCommit

func (m *Dependency) GetCommit() string

func (*Dependency) GetCompliance

func (m *Dependency) GetCompliance() string

func (*Dependency) GetGit

func (m *Dependency) GetGit() string

func (*Dependency) GetGithub

func (m *Dependency) GetGithub() string

func (*Dependency) GetName

func (m *Dependency) GetName() string

func (*Dependency) GetPath

func (m *Dependency) GetPath() string

func (*Dependency) GetSupermarket

func (m *Dependency) GetSupermarket() string

func (*Dependency) GetTag

func (m *Dependency) GetTag() string

func (*Dependency) GetUrl

func (m *Dependency) GetUrl() string

func (*Dependency) GetVersion

func (m *Dependency) GetVersion() string

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) Reset

func (m *Dependency) Reset()

func (*Dependency) String

func (m *Dependency) String() string

func (*Dependency) XXX_DiscardUnknown

func (m *Dependency) XXX_DiscardUnknown()

func (*Dependency) XXX_Marshal

func (m *Dependency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Dependency) XXX_Merge

func (dst *Dependency) XXX_Merge(src proto.Message)

func (*Dependency) XXX_Size

func (m *Dependency) XXX_Size() int

func (*Dependency) XXX_Unmarshal

func (m *Dependency) XXX_Unmarshal(b []byte) error

type Group

type Group struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Controls             []string `protobuf:"bytes,3,rep,name=controls,proto3" json:"controls,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Group) Descriptor

func (*Group) Descriptor() ([]byte, []int)

func (*Group) GetControls

func (m *Group) GetControls() []string

func (*Group) GetId

func (m *Group) GetId() string

func (*Group) GetTitle

func (m *Group) GetTitle() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) Reset

func (m *Group) Reset()

func (*Group) String

func (m *Group) String() string

func (*Group) XXX_DiscardUnknown

func (m *Group) XXX_DiscardUnknown()

func (*Group) XXX_Marshal

func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Group) XXX_Merge

func (dst *Group) XXX_Merge(src proto.Message)

func (*Group) XXX_Size

func (m *Group) XXX_Size() int

func (*Group) XXX_Unmarshal

func (m *Group) XXX_Unmarshal(b []byte) error

type ListFilter

type ListFilter struct {
	Values               []string `protobuf:"bytes,20,rep,name=values,proto3" json:"values,omitempty"`
	Type                 string   `protobuf:"bytes,21,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListFilter) Descriptor

func (*ListFilter) Descriptor() ([]byte, []int)

func (*ListFilter) GetType

func (m *ListFilter) GetType() string

func (*ListFilter) GetValues

func (m *ListFilter) GetValues() []string

func (*ListFilter) ProtoMessage

func (*ListFilter) ProtoMessage()

func (*ListFilter) Reset

func (m *ListFilter) Reset()

func (*ListFilter) String

func (m *ListFilter) String() string

func (*ListFilter) XXX_DiscardUnknown

func (m *ListFilter) XXX_DiscardUnknown()

func (*ListFilter) XXX_Marshal

func (m *ListFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFilter) XXX_Merge

func (dst *ListFilter) XXX_Merge(src proto.Message)

func (*ListFilter) XXX_Size

func (m *ListFilter) XXX_Size() int

func (*ListFilter) XXX_Unmarshal

func (m *ListFilter) XXX_Unmarshal(b []byte) error

type Metadata

type Metadata struct {
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	ContentType          string   `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Metadata) Descriptor

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetContentType

func (m *Metadata) GetContentType() string

func (*Metadata) GetName

func (m *Metadata) GetName() string

func (*Metadata) GetVersion

func (m *Metadata) GetVersion() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge

func (dst *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

func (m *Metadata) XXX_Unmarshal(b []byte) error

type Option

type Option struct {
	Description          string   `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Default              string   `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Option) Descriptor

func (*Option) Descriptor() ([]byte, []int)

func (*Option) GetDefault

func (m *Option) GetDefault() string

func (*Option) GetDescription

func (m *Option) GetDescription() string

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) Reset

func (m *Option) Reset()

func (*Option) String

func (m *Option) String() string

func (*Option) XXX_DiscardUnknown

func (m *Option) XXX_DiscardUnknown()

func (*Option) XXX_Marshal

func (m *Option) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Option) XXX_Merge

func (dst *Option) XXX_Merge(src proto.Message)

func (*Option) XXX_Size

func (m *Option) XXX_Size() int

func (*Option) XXX_Unmarshal

func (m *Option) XXX_Unmarshal(b []byte) error

type Profile

type Profile struct {
	Name                 string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Title                string        `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Maintainer           string        `protobuf:"bytes,3,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
	Copyright            string        `protobuf:"bytes,4,opt,name=copyright,proto3" json:"copyright,omitempty"`
	CopyrightEmail       string        `protobuf:"bytes,5,opt,name=copyright_email,json=copyrightEmail,proto3" json:"copyright_email,omitempty"`
	License              string        `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty"`
	Summary              string        `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"`
	Version              string        `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`
	Owner                string        `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"`
	Supports             []*Support    `protobuf:"bytes,16,rep,name=supports,proto3" json:"supports,omitempty"`
	Depends              []*Dependency `protobuf:"bytes,17,rep,name=depends,proto3" json:"depends,omitempty"`
	Sha256               string        `protobuf:"bytes,18,opt,name=sha256,proto3" json:"sha256,omitempty"`
	Groups               []*Group      `protobuf:"bytes,19,rep,name=groups,proto3" json:"groups,omitempty"`
	Controls             []*Control    `protobuf:"bytes,20,rep,name=controls,proto3" json:"controls,omitempty"`
	Attributes           []*Attribute  `protobuf:"bytes,21,rep,name=attributes,proto3" json:"attributes,omitempty"`
	LatestVersion        string        `protobuf:"bytes,22,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Profile) Descriptor

func (*Profile) Descriptor() ([]byte, []int)

func (*Profile) GetAttributes

func (m *Profile) GetAttributes() []*Attribute

func (*Profile) GetControls

func (m *Profile) GetControls() []*Control

func (*Profile) GetCopyright

func (m *Profile) GetCopyright() string

func (*Profile) GetCopyrightEmail

func (m *Profile) GetCopyrightEmail() string

func (*Profile) GetDepends

func (m *Profile) GetDepends() []*Dependency

func (*Profile) GetGroups

func (m *Profile) GetGroups() []*Group

func (*Profile) GetLatestVersion

func (m *Profile) GetLatestVersion() string

func (*Profile) GetLicense

func (m *Profile) GetLicense() string

func (*Profile) GetMaintainer

func (m *Profile) GetMaintainer() string

func (*Profile) GetName

func (m *Profile) GetName() string

func (*Profile) GetOwner

func (m *Profile) GetOwner() string

func (*Profile) GetSha256

func (m *Profile) GetSha256() string

func (*Profile) GetSummary

func (m *Profile) GetSummary() string

func (*Profile) GetSupports

func (m *Profile) GetSupports() []*Support

func (*Profile) GetTitle

func (m *Profile) GetTitle() string

func (*Profile) GetVersion

func (m *Profile) GetVersion() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) String

func (m *Profile) String() string

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Profile) XXX_Merge

func (dst *Profile) XXX_Merge(src proto.Message)

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

func (m *Profile) XXX_Unmarshal(b []byte) error

type ProfileData

type ProfileData struct {
	Owner                string   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Data                 []byte   `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ProfileData) Descriptor

func (*ProfileData) Descriptor() ([]byte, []int)

func (*ProfileData) GetData

func (m *ProfileData) GetData() []byte

func (*ProfileData) GetName

func (m *ProfileData) GetName() string

func (*ProfileData) GetOwner

func (m *ProfileData) GetOwner() string

func (*ProfileData) GetVersion

func (m *ProfileData) GetVersion() string

func (*ProfileData) ProtoMessage

func (*ProfileData) ProtoMessage()

func (*ProfileData) Reset

func (m *ProfileData) Reset()

func (*ProfileData) String

func (m *ProfileData) String() string

func (*ProfileData) XXX_DiscardUnknown

func (m *ProfileData) XXX_DiscardUnknown()

func (*ProfileData) XXX_Marshal

func (m *ProfileData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProfileData) XXX_Merge

func (dst *ProfileData) XXX_Merge(src proto.Message)

func (*ProfileData) XXX_Size

func (m *ProfileData) XXX_Size() int

func (*ProfileData) XXX_Unmarshal

func (m *ProfileData) XXX_Unmarshal(b []byte) error

type ProfileDetails

type ProfileDetails struct {
	Owner                string   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ProfileDetails) Descriptor

func (*ProfileDetails) Descriptor() ([]byte, []int)

func (*ProfileDetails) GetName

func (m *ProfileDetails) GetName() string

func (*ProfileDetails) GetOwner

func (m *ProfileDetails) GetOwner() string

func (*ProfileDetails) GetVersion

func (m *ProfileDetails) GetVersion() string

func (*ProfileDetails) ProtoMessage

func (*ProfileDetails) ProtoMessage()

func (*ProfileDetails) Reset

func (m *ProfileDetails) Reset()

func (*ProfileDetails) String

func (m *ProfileDetails) String() string

func (*ProfileDetails) XXX_DiscardUnknown

func (m *ProfileDetails) XXX_DiscardUnknown()

func (*ProfileDetails) XXX_Marshal

func (m *ProfileDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProfileDetails) XXX_Merge

func (dst *ProfileDetails) XXX_Merge(src proto.Message)

func (*ProfileDetails) XXX_Size

func (m *ProfileDetails) XXX_Size() int

func (*ProfileDetails) XXX_Unmarshal

func (m *ProfileDetails) XXX_Unmarshal(b []byte) error

type ProfilePostRequest

type ProfilePostRequest struct {
	Owner                string    `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	Chunk                *Chunk    `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"`
	Meta                 *Metadata `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ProfilePostRequest) Descriptor

func (*ProfilePostRequest) Descriptor() ([]byte, []int)

func (*ProfilePostRequest) GetChunk

func (m *ProfilePostRequest) GetChunk() *Chunk

func (*ProfilePostRequest) GetMeta

func (m *ProfilePostRequest) GetMeta() *Metadata

func (*ProfilePostRequest) GetOwner

func (m *ProfilePostRequest) GetOwner() string

func (*ProfilePostRequest) ProtoMessage

func (*ProfilePostRequest) ProtoMessage()

func (*ProfilePostRequest) Reset

func (m *ProfilePostRequest) Reset()

func (*ProfilePostRequest) String

func (m *ProfilePostRequest) String() string

func (*ProfilePostRequest) XXX_DiscardUnknown

func (m *ProfilePostRequest) XXX_DiscardUnknown()

func (*ProfilePostRequest) XXX_Marshal

func (m *ProfilePostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProfilePostRequest) XXX_Merge

func (dst *ProfilePostRequest) XXX_Merge(src proto.Message)

func (*ProfilePostRequest) XXX_Size

func (m *ProfilePostRequest) XXX_Size() int

func (*ProfilePostRequest) XXX_Unmarshal

func (m *ProfilePostRequest) XXX_Unmarshal(b []byte) error

type Profiles

type Profiles struct {
	Profiles             []*Profile `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
	Total                int32      `protobuf:"varint,20,opt,name=total,proto3" json:"total,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Profiles) Descriptor

func (*Profiles) Descriptor() ([]byte, []int)

func (*Profiles) GetProfiles

func (m *Profiles) GetProfiles() []*Profile

func (*Profiles) GetTotal

func (m *Profiles) GetTotal() int32

func (*Profiles) ProtoMessage

func (*Profiles) ProtoMessage()

func (*Profiles) Reset

func (m *Profiles) Reset()

func (*Profiles) String

func (m *Profiles) String() string

func (*Profiles) XXX_DiscardUnknown

func (m *Profiles) XXX_DiscardUnknown()

func (*Profiles) XXX_Marshal

func (m *Profiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Profiles) XXX_Merge

func (dst *Profiles) XXX_Merge(src proto.Message)

func (*Profiles) XXX_Size

func (m *Profiles) XXX_Size() int

func (*Profiles) XXX_Unmarshal

func (m *Profiles) XXX_Unmarshal(b []byte) error

type ProfilesServiceClient

type ProfilesServiceClient interface {
	// grpc gateway is not able to handle multi-part upload; https://github.com/grpc-ecosystem/grpc-gateway/issues/410
	// so we do not auto-generate the route for profile upload; we instead custom handle with mux
	Create(ctx context.Context, opts ...grpc.CallOption) (ProfilesService_CreateClient, error)
	Read(ctx context.Context, in *ProfileDetails, opts ...grpc.CallOption) (*Profile, error)
	ReadFromMarket(ctx context.Context, in *ProfileDetails, opts ...grpc.CallOption) (*Profile, error)
	// grpc gateway is not able to handle streaming; https://github.com/grpc-ecosystem/grpc-gateway/issues/435
	// so we do not auto-generate the route for profile download; we instead custom handle with mux
	ReadTar(ctx context.Context, in *ProfileDetails, opts ...grpc.CallOption) (ProfilesService_ReadTarClient, error)
	Delete(ctx context.Context, in *ProfileDetails, opts ...grpc.CallOption) (*empty.Empty, error)
	List(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Profiles, error)
}

ProfilesServiceClient is the client API for ProfilesService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewProfilesServiceClient

func NewProfilesServiceClient(cc *grpc.ClientConn) ProfilesServiceClient

type ProfilesServiceServer

type ProfilesServiceServer interface {
	// grpc gateway is not able to handle multi-part upload; https://github.com/grpc-ecosystem/grpc-gateway/issues/410
	// so we do not auto-generate the route for profile upload; we instead custom handle with mux
	Create(ProfilesService_CreateServer) error
	Read(context.Context, *ProfileDetails) (*Profile, error)
	ReadFromMarket(context.Context, *ProfileDetails) (*Profile, error)
	// grpc gateway is not able to handle streaming; https://github.com/grpc-ecosystem/grpc-gateway/issues/435
	// so we do not auto-generate the route for profile download; we instead custom handle with mux
	ReadTar(*ProfileDetails, ProfilesService_ReadTarServer) error
	Delete(context.Context, *ProfileDetails) (*empty.Empty, error)
	List(context.Context, *Query) (*Profiles, error)
}

ProfilesServiceServer is the server API for ProfilesService service.

type ProfilesService_CreateClient

type ProfilesService_CreateClient interface {
	Send(*ProfilePostRequest) error
	CloseAndRecv() (*CheckResult, error)
	grpc.ClientStream
}

type ProfilesService_CreateServer

type ProfilesService_CreateServer interface {
	SendAndClose(*CheckResult) error
	Recv() (*ProfilePostRequest, error)
	grpc.ServerStream
}

type ProfilesService_ReadTarClient

type ProfilesService_ReadTarClient interface {
	Recv() (*ProfileData, error)
	grpc.ClientStream
}

type ProfilesService_ReadTarServer

type ProfilesService_ReadTarServer interface {
	Send(*ProfileData) error
	grpc.ServerStream
}

type Query

type Query struct {
	Filters              []*ListFilter   `protobuf:"bytes,20,rep,name=filters,proto3" json:"filters,omitempty"`
	Order                Query_OrderType `` /* 127-byte string literal not displayed */
	Sort                 string          `protobuf:"bytes,22,opt,name=sort,proto3" json:"sort,omitempty"`
	Page                 int32           `protobuf:"varint,23,opt,name=page,proto3" json:"page,omitempty"`
	PerPage              int32           `protobuf:"varint,24,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	Owner                string          `protobuf:"bytes,25,opt,name=owner,proto3" json:"owner,omitempty"`
	Name                 string          `protobuf:"bytes,26,opt,name=name,proto3" json:"name,omitempty"`
	Version              string          `protobuf:"bytes,27,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Query) Descriptor

func (*Query) Descriptor() ([]byte, []int)

func (*Query) GetFilters

func (m *Query) GetFilters() []*ListFilter

func (*Query) GetName

func (m *Query) GetName() string

func (*Query) GetOrder

func (m *Query) GetOrder() Query_OrderType

func (*Query) GetOwner

func (m *Query) GetOwner() string

func (*Query) GetPage

func (m *Query) GetPage() int32

func (*Query) GetPerPage

func (m *Query) GetPerPage() int32

func (*Query) GetSort

func (m *Query) GetSort() string

func (*Query) GetVersion

func (m *Query) GetVersion() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Query) XXX_Merge

func (dst *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

func (m *Query) XXX_Unmarshal(b []byte) error

type Query_OrderType

type Query_OrderType int32
const (
	Query_ASC  Query_OrderType = 0
	Query_DESC Query_OrderType = 1
)

func (Query_OrderType) EnumDescriptor

func (Query_OrderType) EnumDescriptor() ([]byte, []int)

func (Query_OrderType) String

func (x Query_OrderType) String() string

type Ref

type Ref struct {
	Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Ref                  string   `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ref) Descriptor

func (*Ref) Descriptor() ([]byte, []int)

func (*Ref) GetRef

func (m *Ref) GetRef() string

func (*Ref) GetUrl

func (m *Ref) GetUrl() string

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) Reset

func (m *Ref) Reset()

func (*Ref) String

func (m *Ref) String() string

func (*Ref) XXX_DiscardUnknown

func (m *Ref) XXX_DiscardUnknown()

func (*Ref) XXX_Marshal

func (m *Ref) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ref) XXX_Merge

func (dst *Ref) XXX_Merge(src proto.Message)

func (*Ref) XXX_Size

func (m *Ref) XXX_Size() int

func (*Ref) XXX_Unmarshal

func (m *Ref) XXX_Unmarshal(b []byte) error

type Result

type Result struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	CodeDesc             string   `protobuf:"bytes,2,opt,name=code_desc,json=codeDesc,proto3" json:"code_desc,omitempty"`
	RunTime              float32  `protobuf:"fixed32,3,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"`
	StartTime            string   `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	Message              string   `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	SkipMessage          string   `protobuf:"bytes,6,opt,name=skip_message,json=skipMessage,proto3" json:"skip_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) GetCodeDesc

func (m *Result) GetCodeDesc() string

func (*Result) GetMessage

func (m *Result) GetMessage() string

func (*Result) GetRunTime

func (m *Result) GetRunTime() float32

func (*Result) GetSkipMessage

func (m *Result) GetSkipMessage() string

func (*Result) GetStartTime

func (m *Result) GetStartTime() string

func (*Result) GetStatus

func (m *Result) GetStatus() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (dst *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

type ResultSummary

type ResultSummary struct {
	Valid                bool     `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Timestamp            string   `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Location             string   `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Controls             int32    `protobuf:"varint,4,opt,name=controls,proto3" json:"controls,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResultSummary) Descriptor

func (*ResultSummary) Descriptor() ([]byte, []int)

func (*ResultSummary) GetControls

func (m *ResultSummary) GetControls() int32

func (*ResultSummary) GetLocation

func (m *ResultSummary) GetLocation() string

func (*ResultSummary) GetTimestamp

func (m *ResultSummary) GetTimestamp() string

func (*ResultSummary) GetValid

func (m *ResultSummary) GetValid() bool

func (*ResultSummary) ProtoMessage

func (*ResultSummary) ProtoMessage()

func (*ResultSummary) Reset

func (m *ResultSummary) Reset()

func (*ResultSummary) String

func (m *ResultSummary) String() string

func (*ResultSummary) XXX_DiscardUnknown

func (m *ResultSummary) XXX_DiscardUnknown()

func (*ResultSummary) XXX_Marshal

func (m *ResultSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResultSummary) XXX_Merge

func (dst *ResultSummary) XXX_Merge(src proto.Message)

func (*ResultSummary) XXX_Size

func (m *ResultSummary) XXX_Size() int

func (*ResultSummary) XXX_Unmarshal

func (m *ResultSummary) XXX_Unmarshal(b []byte) error

type SourceLocation

type SourceLocation struct {
	Ref                  string   `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	Line                 int32    `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SourceLocation) Descriptor

func (*SourceLocation) Descriptor() ([]byte, []int)

func (*SourceLocation) GetLine

func (m *SourceLocation) GetLine() int32

func (*SourceLocation) GetRef

func (m *SourceLocation) GetRef() string

func (*SourceLocation) ProtoMessage

func (*SourceLocation) ProtoMessage()

func (*SourceLocation) Reset

func (m *SourceLocation) Reset()

func (*SourceLocation) String

func (m *SourceLocation) String() string

func (*SourceLocation) XXX_DiscardUnknown

func (m *SourceLocation) XXX_DiscardUnknown()

func (*SourceLocation) XXX_Marshal

func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SourceLocation) XXX_Merge

func (dst *SourceLocation) XXX_Merge(src proto.Message)

func (*SourceLocation) XXX_Size

func (m *SourceLocation) XXX_Size() int

func (*SourceLocation) XXX_Unmarshal

func (m *SourceLocation) XXX_Unmarshal(b []byte) error

type Support

type Support struct {
	OsName               string   `protobuf:"bytes,1,opt,name=os_name,json=osName,proto3" json:"os_name,omitempty"`
	OsFamily             string   `protobuf:"bytes,2,opt,name=os_family,json=osFamily,proto3" json:"os_family,omitempty"`
	Release              string   `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
	InspecVersion        string   `protobuf:"bytes,4,opt,name=inspec_version,json=inspecVersion,proto3" json:"inspec_version,omitempty"`
	Platform             string   `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Support) Descriptor

func (*Support) Descriptor() ([]byte, []int)

func (*Support) GetInspecVersion

func (m *Support) GetInspecVersion() string

func (*Support) GetOsFamily

func (m *Support) GetOsFamily() string

func (*Support) GetOsName

func (m *Support) GetOsName() string

func (*Support) GetPlatform

func (m *Support) GetPlatform() string

func (*Support) GetRelease

func (m *Support) GetRelease() string

func (*Support) ProtoMessage

func (*Support) ProtoMessage()

func (*Support) Reset

func (m *Support) Reset()

func (*Support) String

func (m *Support) String() string

func (*Support) XXX_DiscardUnknown

func (m *Support) XXX_DiscardUnknown()

func (*Support) XXX_Marshal

func (m *Support) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Support) XXX_Merge

func (dst *Support) XXX_Merge(src proto.Message)

func (*Support) XXX_Size

func (m *Support) XXX_Size() int

func (*Support) XXX_Unmarshal

func (m *Support) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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