proto

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: BSD-2-Clause Imports: 0 Imported by: 6

Documentation

Index

Constants

View Source
const (
	StatusOK             = 200
	StatusAccepted       = 202
	StatusPartial        = 206
	StatusBadRequest     = 400
	StatusUnauthorized   = 401
	StatusForbidden      = 403
	StatusNotFound       = 404
	StatusConflict       = 406
	StatusError          = 500
	StatusNotImplemented = 501
	StatusUnavailable    = 503
	StatusGatewayTimeout = 504
)

Variables

View Source
var DisplayStatus = map[int]string{
	200: "OK",
	202: "Accepted",
	206: "Partial result",
	400: "Bad Request",
	401: "Unauthorized",
	403: "Forbidden",
	404: "Not found",
	406: "Readonly instance",
	500: "Server error",
	501: "Not implemented",
	503: "Service unavailable",
	504: "Gateway timeout",
}

Display text for status codes

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name        string            `json:"name,omitempty"`
	Cardinality string            `json:"cardinality,omitempty"`
	Details     *AttributeDetails `json:"details,omitempty"`
}

type AttributeDetails

type AttributeDetails struct {
	DetailsCreation
}

type Bucket

type Bucket struct {
	Id             string      `json:"id,omitempty"`
	Name           string      `json:"name,omitempty"`
	RepositoryId   string      `json:"repositoryId,omitempty"`
	TeamId         string      `json:"teamId,omitempty"`
	Environment    string      `json:"environment,omitempty"`
	IsDeleted      bool        `json:"isDeleted,omitempty"`
	IsFrozen       bool        `json:"isFrozen,omitempty"`
	MemberGroups   *[]Group    `json:"memberGroups,omitempty"`
	MemberClusters *[]Cluster  `json:"memberClusters,omitempty"`
	MemberNodes    *[]Node     `json:"memberNodes,omitempty"`
	Details        *Details    `json:"details,omitempty"`
	Properties     *[]Property `json:"properties,omitempty"`
}

type BucketFilter

type BucketFilter struct {
	Name         string `json:"name,omitempty"`
	Id           string `json:"id,omitempty"`
	RepositoryId string `json:"repositoryId,omitempty"`
	IsDeleted    bool   `json:"isDeleted,omitempty"`
	IsFrozen     bool   `json:"isFrozen,omitempty"`
}

type Capability

type Capability struct {
	Id           string                  `json:"id,omitempty"`
	Name         string                  `json:"name,omitempty"`
	MonitoringId string                  `json:"monitoringId,omitempty"`
	Metric       string                  `json:"metric,omitempty"`
	View         string                  `json:"view,omitempty"`
	Thresholds   uint64                  `json:"thresholds,omitempty"`
	Demux        *[]string               `json:"demux,omitempty"`
	Constraints  *[]CapabilityConstraint `json:"constraints,omitempty"`
	Details      *CapabilityDetails      `json:"details,omitempty"`
}

func (*Capability) DeepCompare

func (c *Capability) DeepCompare(a *Capability) bool

func (*Capability) DeepCompareSlice

func (c *Capability) DeepCompareSlice(s string, a *[]string) bool

type CapabilityConstraint

type CapabilityConstraint struct {
	Type  string
	Name  string
	Value string
}

func (*CapabilityConstraint) DeepCompare

func (c *CapabilityConstraint) DeepCompare(a *CapabilityConstraint) bool

func (*CapabilityConstraint) DeepCompareSlice

func (c *CapabilityConstraint) DeepCompareSlice(a *[]CapabilityConstraint) bool

type CapabilityDetails

type CapabilityDetails struct {
	DetailsCreation
}

type CapabilityFilter

type CapabilityFilter struct {
	MonitoringId   string `json:"monitoringId,omitempty"`
	MonitoringName string `json:"monitoringName,omitempty"`
	Metric         string `json:"metric,omitempty"`
	View           string `json:"view,omitempty"`
}

type Category

type Category struct {
	Name    string           `json:"name,omitempty"`
	Details *CategoryDetails `json:"details,omitempty"`
}

type CategoryDetails

type CategoryDetails struct {
	CreatedAt string `json:"createdAt,omitempty"`
	CreatedBy string `json:"createdBy,omitempty"`
}

type Check

type Check struct {
	CheckId       string `json:"checkId,omitempty"`
	SourceCheckId string `json:"sourceCheckId,omitempty"`
	CheckConfigId string `json:"checkConfigId,omitempty"`
	SourceType    string `json:"sourceType,omitempty"`
	IsInherited   bool   `json:"isInherited,omitempty"`
	InheritedFrom string `json:"inheritedFrom,omitempty"`
	Inheritance   bool   `json:"inheritance,omitempty"`
	ChildrenOnly  bool   `json:"childrenOnly,omitempty"`
	RepositoryId  string `json:"repositoryId,omitempty"`
	BucketId      string `json:"bucketId,omitempty"`
	CapabilityId  string `json:"capabilityId,omitempty"`
}

func (*Check) DeepCompare

func (t *Check) DeepCompare(a *Check) bool

type CheckConfig

type CheckConfig struct {
	Id           string                  `json:"id,omitempty"`
	Name         string                  `json:"name,omitempty"`
	Interval     uint64                  `json:"interval,omitempty"`
	RepositoryId string                  `json:"repositoryId,omitempty"`
	BucketId     string                  `json:"bucketId,omitempty"`
	CapabilityId string                  `json:"capabilityId,omitempty"`
	ObjectId     string                  `json:"objectId,omitempty"`
	ObjectType   string                  `json:"objectType,omitempty"`
	IsActive     bool                    `json:"isActive,omitempty"`
	IsEnabled    bool                    `json:"isEnabled,omitempty"`
	Inheritance  bool                    `json:"inheritance,omitempty"`
	ChildrenOnly bool                    `json:"childrenOnly,omitempty"`
	ExternalId   string                  `json:"externalId,omitempty"`
	Constraints  []CheckConfigConstraint `json:"constraints,omitempty"`
	Thresholds   []CheckConfigThreshold  `json:"thresholds,omitempty"`
	Details      *CheckConfigDetails     `json:"details,omitempty"`
}

func (*CheckConfig) DeepCompare

func (c *CheckConfig) DeepCompare(a *CheckConfig) bool

type CheckConfigConstraint

type CheckConfigConstraint struct {
	ConstraintType string            `json:"constraintType,omitempty"`
	Native         *PropertyNative   `json:"native,omitempty"`
	Oncall         *PropertyOncall   `json:"oncall,omitempty"`
	Custom         *PropertyCustom   `json:"custom,omitempty"`
	System         *PropertySystem   `json:"system,omitempty"`
	Service        *PropertyService  `json:"service,omitempty"`
	Attribute      *ServiceAttribute `json:"attribute,omitempty"`
}

func (*CheckConfigConstraint) DeepCompare

func (*CheckConfigConstraint) DeepCompareSlice

func (c *CheckConfigConstraint) DeepCompareSlice(a []CheckConfigConstraint) bool

type CheckConfigDetails

type CheckConfigDetails struct {
	CreatedAt string              `json:"createdAt,omitempty"`
	CreatedBy string              `json:"createdBy,omitempty"`
	Instances []CheckInstanceInfo `json:"instances,omitempty"`
}

type CheckConfigFilter

type CheckConfigFilter struct {
	Id           string `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	CapabilityId string `json:"capabilityId,omitempty"`
}

type CheckConfigThreshold

type CheckConfigThreshold struct {
	Predicate Predicate
	Level     Level
	Value     int64
}

func (*CheckConfigThreshold) DeepCompare

func (c *CheckConfigThreshold) DeepCompare(a *CheckConfigThreshold) bool

func (*CheckConfigThreshold) DeepCompareSlice

func (c *CheckConfigThreshold) DeepCompareSlice(a []CheckConfigThreshold) bool

type CheckInstance

type CheckInstance struct {
	InstanceId            string `json:"instanceId,omitempty"`
	CheckId               string `json:"checkId,omitempty"`
	ConfigId              string `json:"configId,omitempty"`
	InstanceConfigId      string `json:"instanceConfigId,omitempty"`
	Version               uint64 `json:"version"`
	ConstraintHash        string `json:"constraintHash,omitempty"`
	ConstraintValHash     string `json:"constraintValHash,omitempty"`
	InstanceSvcCfgHash    string `json:"instanceSvcCfghash,omitempty"`
	InstanceService       string `json:"instanceService,omitempty"`
	InstanceServiceConfig string `json:"instanceServiceCfg,omitempty"`
}

func (*CheckInstance) DeepCompare

func (t *CheckInstance) DeepCompare(a *CheckInstance) bool

type CheckInstanceInfo

type CheckInstanceInfo struct {
	Id            string `json:"id,omitempty"`
	ObjectId      string `json:"objectId,omitempty"`
	ObjectType    string `json:"objectType,omitempty"`
	CurrentStatus string `json:"currentStatus,omitempty"`
	NextStatus    string `json:"nextStatus,omitempty"`
}

type Cluster

type Cluster struct {
	Id          string      `json:"id,omitempty"`
	Name        string      `json:"name,omitempty"`
	BucketId    string      `json:"bucketId,omitempty"`
	ObjectState string      `json:"objectState,omitempty"`
	TeamId      string      `json:"teamId,omitempty"`
	Members     *[]Node     `json:"members,omitempty"`
	Details     *Details    `json:"details,omitempty"`
	Properties  *[]Property `json:"properties,omitempty"`
}

func (*Cluster) DeepCompare

func (c *Cluster) DeepCompare(a *Cluster) bool

type ClusterFilter

type ClusterFilter struct {
	Name     string `json:"name,omitempty"`
	BucketId string `json:"bucketid,omitempty"`
	TeamId   string `json:"teamId,omitempty"`
}

type Datacenter

type Datacenter struct {
	Locode  string             `json:"locode,omitempty"`
	Details *DatacenterDetails `json:"details,omitempty"`
}

type DatacenterDetails

type DatacenterDetails struct {
	DetailsCreation
}

type DatacenterGroup

type DatacenterGroup struct {
	Name    string                  `json:"name,omitempty"`
	Members *[]Datacenter           `json:"members,omitempty"`
	Details *DatacenterGroupDetails `json:"details,omitempty"`
}

type DatacenterGroupDetails

type DatacenterGroupDetails struct {
	DetailsCreation
}

type Deployment

type Deployment struct {
	Repository       string            `json:"repository"`
	Environment      string            `json:"environment"`
	Bucket           string            `json:"bucket"`
	ObjectType       string            `json:"objectType"`
	View             string            `json:"view"`
	Task             string            `json:"task"`
	Datacenter       string            `json:"datacenter"`
	Capability       *Capability       `json:"capability"`
	Monitoring       *Monitoring       `json:"monitoringSystem"`
	Metric           *Metric           `json:"metric"`
	Unit             *Unit             `json:"unit"`
	Team             *Team             `json:"organizationalTeam"`
	Oncall           *Oncall           `json:"oncallDuty,omitempty"`
	Service          *PropertyService  `json:"service,omitempty"`
	Properties       *[]PropertySystem `json:"properties,omitempty"`
	CustomProperties *[]PropertyCustom `json:"customProperties,omitempty"`
	Group            *Group            `json:"group,omitempty"`
	Cluster          *Cluster          `json:"cluster,omitempty"`
	Node             *Node             `json:"node,omitempty"`
	Server           *Server           `json:"server,omitempty"`
	CheckConfig      *CheckConfig      `json:"checkConfig"`
	Check            *Check            `json:"check"`
	CheckInstance    *CheckInstance    `json:"checkInstance"`
}

func (*Deployment) DeepCompare

func (dd *Deployment) DeepCompare(alternate *Deployment) bool

type Details

type Details struct {
	CreatedAt string `json:"createdAt,omitempty"`
	CreatedBy string `json:"createdBy,omitempty"`
	Server    Server `json:"server,omitempty"`
}

type DetailsCreation

type DetailsCreation struct {
	CreatedAt string `json:"createdAt,omitempty"`
	CreatedBy string `json:"createdBy,omitempty"`
}

type Entity

type Entity struct {
	Name    string         `json:"entity,omitempty"`
	Details *EntityDetails `json:"details,omitempty"`
}

An Entity is a Type without the golang keyword problem

type EntityDetails

type EntityDetails struct {
	DetailsCreation
}

type Environment

type Environment struct {
	Name    string              `json:"name,omitempty"`
	Details *EnvironmentDetails `json:"details,omitempty"`
}

type EnvironmentDetails

type EnvironmentDetails struct {
	DetailsCreation
}

type Filter

type Filter struct {
	Bucket      *BucketFilter      `json:"bucket,omitempty"`
	Capability  *CapabilityFilter  `json:"capability,omitempty"`
	CheckConfig *CheckConfigFilter `json:"checkConfig,omitempty"`
	Cluster     *ClusterFilter     `json:"cluster,omitempty"`
	Grant       *GrantFilter       `json:"grant,omitempty"`
	Group       *GroupFilter       `json:"group,omitempty"`
	Job         *JobFilter         `json:"job,omitempty"`
	Level       *LevelFilter       `json:"level,omitempty"`
	Metric      *MetricFilter      `json:"metric,omitempty"`
	Monitoring  *MonitoringFilter  `json:"monitoring,omitempty"`
	Node        *NodeFilter        `json:"node,omitempty"`
	Oncall      *OncallFilter      `json:"oncall,omitempty"`
	Permission  *PermissionFilter  `json:"permission,omitempty"`
	Property    *PropertyFilter    `json:"property,omitempty"`
	Provider    *ProviderFilter    `json:"provider,omitempty"`
	Repository  *RepositoryFilter  `json:"repository,omitempty"`
	Server      *ServerFilter      `json:"server,omitempty"`
	Team        *TeamFilter        `json:"team,omitempty"`
	Unit        *UnitFilter        `json:"unit,omitempty"`
	User        *UserFilter        `json:"user,omitempty"`
}

type Flags

type Flags struct {
	Restore  bool `json:"restore"`
	Purge    bool `json:"purge"`
	Freeze   bool `json:"freeze"`
	Thaw     bool `json:"thaw"`
	Clear    bool `json:"clear"`    // repository
	Activate bool `json:"activate"` // repository
	Detailed bool `json:"detailed"` // jobs
}

type Grant

type Grant struct {
	Id            string        `json:"id"`
	RecipientType string        `json:"recipientType"` //user,team,tool
	RecipientId   string        `json:"recipientId"`
	PermissionId  string        `json:"permissionId"`
	Category      string        `json:"category"`
	RepositoryId  string        `json:"repositoryId"`
	ObjectType    string        `json:"objectType"`
	ObjectId      string        `json:"objectId"`
	Details       *GrantDetails `json:"details,omitempty"`
}

type GrantDetails

type GrantDetails struct {
	CreatedAt string `json:"createdAt,omitempty"`
	CreatedBy string `json:"createdBy,omitempty"`
}

type GrantFilter

type GrantFilter struct {
	RecipientType string `json:"recipientType"`
	RecipientId   string `json:"recipientId"`
	PermissionId  string `json:"permissionId"`
	Category      string `json:"category"`
}

type Group

type Group struct {
	Id             string      `json:"id,omitempty"`
	Name           string      `json:"name,omitempty"`
	BucketId       string      `json:"bucketId,omitempty"`
	ObjectState    string      `json:"objectState,omitempty"`
	TeamId         string      `json:"teamId,omitempty"`
	MemberGroups   *[]Group    `json:"memberGroups,omitempty"`
	MemberClusters *[]Cluster  `json:"memberClusters,omitempty"`
	MemberNodes    *[]Node     `json:"memberNodes,omitempty"`
	Details        *Details    `json:"details,omitempty"`
	Properties     *[]Property `json:"properties,omitempty"`
}

func (*Group) DeepCompare

func (p *Group) DeepCompare(a *Group) bool

type GroupFilter

type GroupFilter struct {
	Name     string `json:"name,omitempty"`
	BucketId string `json:"bucketId,omitempty"`
}

type HostDeployment

type HostDeployment struct {
	CheckInstanceId            string   `json:"checkInstanceId"`
	DeleteInstance             bool     `json:"deleteInstance"`
	CurrentCheckInstanceIdList []string `json:"currentCheckInstanceIdList,omitempty"`
}

type Job

type Job struct {
	Id           string      `json:"id,omitempty"`
	Status       string      `json:"status,omitempty"`
	Result       string      `json:"result,omitempty"`
	Type         string      `json:"type,omitempty"`
	Serial       int         `json:"serial,omitempty"`
	RepositoryId string      `json:"repositoryId,omitempty"`
	UserId       string      `json:"userId,omitempty"`
	TeamId       string      `json:"teamId,omitempty"`
	TsQueued     string      `json:"queued,omitempty"`
	TsStarted    string      `json:"started,omitempty"`
	TsFinished   string      `json:"finished,omitempty"`
	Error        string      `json:"error,omitempty"`
	Details      *JobDetails `json:"details,omitempty"`
}

type JobDetails

type JobDetails struct {
	CreatedAt     string `json:"createdAt,omitempty"`
	CreatedBy     string `json:"createdBy,omitempty"`
	Specification string `json:"specification,omitempty"`
}

type JobFilter

type JobFilter struct {
	User   string   `json:"user,omitempty"`
	Team   string   `json:"team,omitempty"`
	Status string   `json:"status,omitempty"`
	Result string   `json:"result,omitempty"`
	Since  string   `json:"since,omitempty"`
	IdList []string `json:"idlist,omitempty"`
}

type Level

type Level struct {
	Name      string        `json:"name,omitempty"`
	ShortName string        `json:"shortName,omitempty"`
	Numeric   uint16        `json:"numeric,omitempty"`
	Details   *LevelDetails `json:"details,omitempty"`
}

type LevelDetails

type LevelDetails struct {
	DetailsCreation
}

type LevelFilter

type LevelFilter struct {
	Name      string `json:"name,omitempty"`
	ShortName string `json:"shortName,omitempty"`
	Numeric   uint16 `json:"numeric,omitempty"`
}

type Metric

type Metric struct {
	Path        string           `json:"path,omitempty"`
	Unit        string           `json:"unit,omitempty"`
	Description string           `json:"description,omitempty"`
	Packages    *[]MetricPackage `json:"packages,omitempty"`
	Details     *MetricDetails   `json:"details,omitempty"`
}

func (*Metric) DeepCompare

func (p *Metric) DeepCompare(a *Metric) bool

type MetricDetails

type MetricDetails struct {
	DetailsCreation
}

type MetricFilter

type MetricFilter struct {
	Unit     string `json:"unit,omitempty"`
	Provider string `json:"provider,omitempty"`
	Package  string `json:"package,omitempty"`
}

type MetricPackage

type MetricPackage struct {
	Provider string `json:"provider,omitempty"`
	Name     string `json:"name,omitempty"`
}

func (*MetricPackage) DeepCompare

func (p *MetricPackage) DeepCompare(a *MetricPackage) bool

func (*MetricPackage) DeepCompareSlice

func (p *MetricPackage) DeepCompareSlice(a *[]MetricPackage) bool

type Mode

type Mode struct {
	Mode    string       `json:"mode,omitempty"`
	Details *ModeDetails `json:"details,omitempty"`
}

type ModeDetails

type ModeDetails struct {
	DetailsCreation
}

type Monitoring

type Monitoring struct {
	Id       string             `json:"id,omitempty"`
	Name     string             `json:"name,omitempty"`
	Mode     string             `json:"mode,omitempty"`
	Contact  string             `json:"contact,omitempty"`
	TeamId   string             `json:"teamId,omitempty"`
	Callback string             `json:"callback,omitempty"`
	Details  *MonitoringDetails `json:"details,omitempty"`
}

func (*Monitoring) DeepCompare

func (p *Monitoring) DeepCompare(a *Monitoring) bool

type MonitoringDetails

type MonitoringDetails struct {
	DetailsCreation
	Checks    uint64 `json:"checks,omitempty"`
	Instances uint64 `json:"instances,omitempty"`
}

type MonitoringFilter

type MonitoringFilter struct {
	Name    string `json:"name,omitempty"`
	Mode    string `json:"mode,omitempty"`
	Contact string `json:"contact,omitempty"`
	TeamId  string `json:"teamId,omitempty"`
}

type Node

type Node struct {
	Id         string      `json:"id,omitempty"`
	AssetId    uint64      `json:"assetId,omitempty"`
	Name       string      `json:"name,omitempty"`
	TeamId     string      `json:"teamId,omitempty"`
	ServerId   string      `json:"serverId,omitempty"`
	State      string      `json:"state,omitempty"`
	IsOnline   bool        `json:"isOnline,omitempty"`
	IsDeleted  bool        `json:"isDeleted,omitempty"`
	Details    *Details    `json:"details,omitempty"`
	Config     *NodeConfig `json:"config,omitempty"`
	Properties *[]Property `json:"properties,omitempty"`
}

func (*Node) DeepCompare

func (p *Node) DeepCompare(a *Node) bool

type NodeConfig

type NodeConfig struct {
	RepositoryId string `json:"repositoryId,omitempty"`
	BucketId     string `json:"bucketId,omitempty"`
}

type NodeFilter

type NodeFilter struct {
	Name       string `json:"name,omitempty"`
	TeamId     string `json:"teamId,omitempty"`
	ServerId   string `json:"serverId,omitempty"`
	IsOnline   bool   `json:"isOnline,omitempty"`
	NotOnline  bool   `json:"notOnline,omitempty"`
	Deleted    bool   `json:"isDeleted,omitempty"`
	NotDeleted bool   `json:"notDeleted,omitempty"`
}

type Oncall

type Oncall struct {
	Id      string          `json:"id,omitempty"`
	Name    string          `json:"name,omitempty"`
	Number  string          `json:"number,omitempty"`
	Members *[]OncallMember `json:"members,omitempty"`
	Details *OncallDetails  `json:"details,omitempty"`
}

func (*Oncall) DeepCompare

func (p *Oncall) DeepCompare(a *Oncall) bool

type OncallDetails

type OncallDetails struct {
	DetailsCreation
}

type OncallFilter

type OncallFilter struct {
	Name   string `json:"name,omitempty"`
	Number string `json:"number,omitempty"`
}

type OncallMember

type OncallMember struct {
	UserName string `json:"userName,omitempty"`
	UserId   string `json"userId,omitempty"`
}

type Permission

type Permission struct {
	Id       string             `json:"id,omitempty"`
	Name     string             `json:"name,omitempty"`
	Category string             `json:"category,omitempty"`
	Grants   string             `json:"grants,omitempty"`
	Details  *PermissionDetails `json:"details,omitempty"`
}

type PermissionDetails

type PermissionDetails struct {
	CreatedAt string `json:"createdAt,omitempty"`
	CreatedBy string `json:"createdBy,omitempty"`
}

type PermissionFilter

type PermissionFilter struct {
	Name string `json:"name,omitempty"`
}

type Predicate

type Predicate struct {
	Symbol  string            `json:"symbol,omitempty"`
	Details *PredicateDetails `json:"details,omitempty"`
}

type PredicateDetails

type PredicateDetails struct {
	DetailsCreation
}

type Property

type Property struct {
	Type             string           `json:"type"`
	RepositoryId     string           `json:"repositoryId,omitempty"`
	BucketId         string           `json:"bucketId,omitempty"`
	InstanceId       string           `json:"instanceId,omitempty"`
	View             string           `json:"view,omitempty"`
	Inheritance      bool             `json:"inheritance,omitempty"`
	ChildrenOnly     bool             `json:"childrenOnly,omitempty"`
	IsInherited      bool             `json:"isInherited,omitempty"`
	SourceInstanceId string           `json:"sourceInstanceId,omitempty"`
	SourceType       string           `json:"sourceType,omitempty"`
	InheritedFrom    string           `json:"inheritedFrom,omitempty"`
	Custom           *PropertyCustom  `json:"custom,omitempty"`
	System           *PropertySystem  `json:"system,omitempty"`
	Service          *PropertyService `json:"service,omitempty"`
	Native           *PropertyNative  `json:"native,omitempty"`
	Oncall           *PropertyOncall  `json:"oncall,omitempty"`
	Details          *PropertyDetails `json:"details,omitempty"`
}

type PropertyCustom

type PropertyCustom struct {
	Id           string `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	RepositoryId string `json:"repositoryId,omitempty"`
	Value        string `json:"value,omitempty"`
}

func (*PropertyCustom) DeepCompare

func (t *PropertyCustom) DeepCompare(a *PropertyCustom) bool

func (*PropertyCustom) DeepCompareSlice

func (t *PropertyCustom) DeepCompareSlice(a *[]PropertyCustom) bool

type PropertyDetails

type PropertyDetails struct {
	DetailsCreation
}

type PropertyFilter

type PropertyFilter struct {
	Name         string `json:"name,omitempty"`
	Type         string `json:"type,omitempty"`
	RepositoryId string `json:"repositoryId,omitempty"`
}

type PropertyNative

type PropertyNative struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*PropertyNative) DeepCompare

func (t *PropertyNative) DeepCompare(a *PropertyNative) bool

type PropertyOncall

type PropertyOncall struct {
	Id     string `json:"id,omitempty"`
	Name   string `json:"name,omitempty"`
	Number string `json:"number,omitempty"`
}

func (*PropertyOncall) DeepCompare

func (t *PropertyOncall) DeepCompare(a *PropertyOncall) bool

type PropertyService

type PropertyService struct {
	Name       string             `json:"name,omitempty"`
	TeamId     string             `json:"teamId,omitempty"`
	Attributes []ServiceAttribute `json:"attributes"`
}

func (*PropertyService) DeepCompare

func (t *PropertyService) DeepCompare(a *PropertyService) bool

type PropertySystem

type PropertySystem struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*PropertySystem) DeepCompare

func (t *PropertySystem) DeepCompare(a *PropertySystem) bool

func (*PropertySystem) DeepCompareSlice

func (t *PropertySystem) DeepCompareSlice(a *[]PropertySystem) bool

type Provider

type Provider struct {
	Name    string           `json:"name,omitempty"`
	Details *ProviderDetails `json:"details,omitempty"`
}

type ProviderDetails

type ProviderDetails struct {
	DetailsCreation
}

type ProviderFilter

type ProviderFilter struct {
	Name string `json:"name,omitempty"`
}

type Repository

type Repository struct {
	Id         string      `json:"id,omitempty"`
	Name       string      `json:"name,omitempty"`
	TeamId     string      `json:"teamId,omitempty"`
	IsDeleted  bool        `json:"isDeleted,omitempty"`
	IsActive   bool        `json:"isActive,omitempty"`
	Members    *[]Bucket   `json:"members,omitempty"`
	Details    *Details    `json:"details,omitempty"`
	Properties *[]Property `json:"properties,omitempty"`
}

type RepositoryFilter

type RepositoryFilter struct {
	Name      string `json:"name,omitempty"`
	TeamId    string `json:"teamId,omitempty"`
	IsDeleted bool   `json:"isDeleted,omitempty"`
	IsActive  bool   `json:"isActive,omitempty"`
}

type Request

type Request struct {
	Filter *Filter `json:"filter,omitempty"`
	Flags  *Flags  `json:"flags,omitempty"`

	Attribute       *Attribute       `json:"attribute,omitempty"`
	Bucket          *Bucket          `json:"bucket,omitempty"`
	Capability      *Capability      `json:"capability,omitempty"`
	Category        *Category        `json:"category,omitempty"`
	CheckConfig     *CheckConfig     `json:"checkConfig,omitempty"`
	Cluster         *Cluster         `json:"cluster,omitempty"`
	Datacenter      *Datacenter      `json:"datacenter,omitempty"`
	DatacenterGroup *DatacenterGroup `json:"datacenterGroup,omitempty"`
	Entity          *Entity          `json:"entity,omitempty"`
	Environment     *Environment     `json:"environment,omitempty"`
	Grant           *Grant           `json:"grant,omitempty"`
	Group           *Group           `json:"group,omitempty"`
	HostDeployment  *HostDeployment  `json:"hostDeployment,omitempty"`
	Level           *Level           `json:"level,omitempty"`
	Metric          *Metric          `json:"metric,omitempty"`
	Mode            *Mode            `json:"mode,omitempty"`
	Monitoring      *Monitoring      `json:"monitoring,omitempty"`
	Node            *Node            `json:"node,omitempty"`
	Oncall          *Oncall          `json:"oncall,omitempty"`
	Permission      *Permission      `json:"permission,omitempty"`
	Predicate       *Predicate       `json:"predicate,omitempty"`
	Property        *Property        `json:"property,omitempty"`
	Provider        *Provider        `json:"provider,omitempty"`
	Repository      *Repository      `json:"repository,omitempty"`
	Server          *Server          `json:"server,omitempty"`
	State           *State           `json:"state,omitempty"`
	Status          *Status          `json:"status,omitempty"`
	SystemOperation *SystemOperation `json:"systemOperation,omitempty"`
	Team            *Team            `json:"team,omitempty"`
	Unit            *Unit            `json:"unit,omitempty"`
	User            *User            `json:"user,omitempty"`
	Validity        *Validity        `json:"validity,omitempty"`
	View            *View            `json:"view,omitempty"`
}

func NewAttributeRequest

func NewAttributeRequest() Request

func NewBucketFilter

func NewBucketFilter() Request

func NewBucketRequest

func NewBucketRequest() Request

func NewCapabilityFilter

func NewCapabilityFilter() Request

func NewCapabilityRequest

func NewCapabilityRequest() Request

func NewCategoryRequest

func NewCategoryRequest() Request

func NewCheckConfigFilter

func NewCheckConfigFilter() Request

func NewCheckConfigRequest

func NewCheckConfigRequest() Request

func NewClusterFilter

func NewClusterFilter() Request

func NewClusterRequest

func NewClusterRequest() Request

func NewDatacenterGroupRequest

func NewDatacenterGroupRequest() Request

func NewDatacenterRequest

func NewDatacenterRequest() Request

func NewEntityRequest

func NewEntityRequest() Request

func NewEnvironmentRequest

func NewEnvironmentRequest() Request

func NewGrantFilter

func NewGrantFilter() Request

func NewGrantRequest

func NewGrantRequest() Request

func NewGroupFilter

func NewGroupFilter() Request

func NewGroupRequest

func NewGroupRequest() Request

func NewHostDeploymentRequest

func NewHostDeploymentRequest() Request

func NewJobFilter

func NewJobFilter() Request

func NewLevelFilter

func NewLevelFilter() Request

func NewLevelRequest

func NewLevelRequest() Request

func NewMetricFilter

func NewMetricFilter() Request

func NewMetricRequest

func NewMetricRequest() Request

func NewModeRequest

func NewModeRequest() Request

func NewMonitoringFilter

func NewMonitoringFilter() Request

func NewMonitoringRequest

func NewMonitoringRequest() Request

func NewNodeFilter

func NewNodeFilter() Request

func NewNodeRequest

func NewNodeRequest() Request

func NewOncallFilter

func NewOncallFilter() Request

func NewOncallRequest

func NewOncallRequest() Request

func NewPermissionFilter

func NewPermissionFilter() Request

func NewPermissionRequest

func NewPermissionRequest() Request

func NewPredicateRequest

func NewPredicateRequest() Request

func NewPropertyFilter

func NewPropertyFilter() Request

func NewPropertyRequest

func NewPropertyRequest() Request

func NewProviderFilter

func NewProviderFilter() Request

func NewProviderRequest

func NewProviderRequest() Request

func NewRepositoryFilter

func NewRepositoryFilter() Request

func NewRepositoryRequest

func NewRepositoryRequest() Request

func NewServerFilter

func NewServerFilter() Request

func NewServerRequest

func NewServerRequest() Request

func NewStateRequest

func NewStateRequest() Request

func NewStatusRequest

func NewStatusRequest() Request

func NewSystemOperationRequest

func NewSystemOperationRequest() Request

func NewTeamFilter

func NewTeamFilter() Request

func NewTeamRequest

func NewTeamRequest() Request

func NewUnitFilter

func NewUnitFilter() Request

func NewUnitRequest

func NewUnitRequest() Request

func NewUserFilter

func NewUserFilter() Request

func NewUserRequest

func NewUserRequest() Request

func NewValidityRequest

func NewValidityRequest() Request

func NewViewRequest

func NewViewRequest() Request

type Result

type Result struct {
	StatusCode uint16 `json:"statusCode"`
	StatusText string `json:"statusText"`

	// Errors is set for StatusCode >399
	Errors *[]string `json:"errors,omitempty"`
	// JobId is set for StatusCode 202 (async processing)
	JobId   string `json:"jobId,omitempty"`
	JobType string `json:"jobType,omitempty"`
	// List of (outstanding) deployment IDs
	DeploymentsList *[]string `json:"deploymentsList,omitempty"`

	// Request dependent data
	Attributes       *[]Attribute       `json:"attributes,omitempty"`
	Buckets          *[]Bucket          `json:"buckets,omitempty"`
	Capabilities     *[]Capability      `json:"capability,omitempty"`
	Categories       *[]Category        `json:"categories,omitempty"`
	CheckConfigs     *[]CheckConfig     `json:"checkConfigs,omitempty"`
	Clusters         *[]Cluster         `json:"clusters,omitempty"`
	DatacenterGroups *[]DatacenterGroup `json:"datacenterGroups,omitempty"`
	Datacenters      *[]Datacenter      `json:"datacenter,omitempty"`
	Deployments      *[]Deployment      `json:"deployments,omitempty"`
	Entities         *[]Entity          `json:"entities,omitempty"`
	Environments     *[]Environment     `json:"environment,omitempty"`
	Grants           *[]Grant           `json:"grants,omitempty"`
	Groups           *[]Group           `json:"groups,omitempty"`
	HostDeployments  *[]HostDeployment  `json:"hostDeployments,omitempty"`
	Jobs             *[]Job             `json:"jobs,omitempty"`
	Levels           *[]Level           `json:"levels,omitempty"`
	Metrics          *[]Metric          `json:"metrics,omitempty"`
	Modes            *[]Mode            `json:"modes,omitempty"`
	Monitorings      *[]Monitoring      `json:"monitorings,omitempty"`
	Nodes            *[]Node            `json:"nodes,omitempty"`
	Oncalls          *[]Oncall          `json:"oncall,omitempty"`
	Permissions      *[]Permission      `json:"permissions,omitempty"`
	Predicates       *[]Predicate       `json:"predicates,omitempty"`
	Properties       *[]Property        `json:"properties,omitempty"`
	Providers        *[]Provider        `json:"providers,omitempty"`
	Repositories     *[]Repository      `json:"repositories,omitempty"`
	Servers          *[]Server          `json:"servers,omitempty"`
	States           *[]State           `json:"states,omitempty"`
	Status           *[]Status          `json:"status,omitempty"`
	SystemOperations *[]SystemOperation `json:"systemOperation,omitempty"`
	Teams            *[]Team            `json:"teams,omitempty"`
	Tree             *Tree              `json:"tree,omitempty"`
	Units            *[]Unit            `json:"units,omitempty"`
	Users            *[]User            `json:"users,omitempty"`
	Validities       *[]Validity        `json:"validities,omitempty"`
	Views            *[]View            `json:"views,omitempty"`
}

func NewAttributeResult

func NewAttributeResult() Result

func NewBucketResult

func NewBucketResult() Result

func NewCapabilityResult

func NewCapabilityResult() Result

func NewCategoryResult

func NewCategoryResult() Result

func NewCheckConfigResult

func NewCheckConfigResult() Result

func NewClusterResult

func NewClusterResult() Result

func NewDatacenterGroupResult

func NewDatacenterGroupResult() Result

func NewDatacenterResult

func NewDatacenterResult() Result

func NewDeploymentResult

func NewDeploymentResult() Result

func NewEntityResult

func NewEntityResult() Result

func NewEnvironmentResult

func NewEnvironmentResult() Result

func NewGrantResult

func NewGrantResult() Result

func NewGroupResult

func NewGroupResult() Result

func NewHostDeploymentResult

func NewHostDeploymentResult() Result

func NewJobResult

func NewJobResult() Result

func NewLevelResult

func NewLevelResult() Result

func NewMetricResult

func NewMetricResult() Result

func NewModeResult

func NewModeResult() Result

func NewMonitoringResult

func NewMonitoringResult() Result

func NewNodeResult

func NewNodeResult() Result

func NewOncallResult

func NewOncallResult() Result

func NewPermissionResult

func NewPermissionResult() Result

func NewPredicateResult

func NewPredicateResult() Result

func NewPropertyResult

func NewPropertyResult() Result

func NewProviderResult

func NewProviderResult() Result

func NewRepositoryResult

func NewRepositoryResult() Result

func NewServerResult

func NewServerResult() Result

func NewStateResult

func NewStateResult() Result

func NewStatusResult

func NewStatusResult() Result

func NewSystemOperationResult

func NewSystemOperationResult() Result

func NewTeamResult

func NewTeamResult() Result

func NewTreeResult

func NewTreeResult() Result

func NewUnitResult

func NewUnitResult() Result

func NewUserResult

func NewUserResult() Result

func NewValidityResult

func NewValidityResult() Result

func NewViewResult

func NewViewResult() Result

func (*Result) Accepted

func (r *Result) Accepted()

func (*Result) Clean

func (r *Result) Clean()

func (*Result) Conflict

func (r *Result) Conflict()

func (*Result) Error

func (r *Result) Error(err error) bool

func (*Result) ErrorMark

func (r *Result) ErrorMark(err error, imp bool, found bool,
	length int, jobid, jobtype string) bool

Legacy interface

func (*Result) NotFound

func (r *Result) NotFound()

func (*Result) NotImplemented

func (r *Result) NotImplemented()

func (*Result) OK

func (r *Result) OK()

func (*Result) Partial

func (r *Result) Partial()

func (*Result) Unavailable

func (r *Result) Unavailable()

type Server

type Server struct {
	Id         string         `json:"id,omitempty"`
	AssetId    uint64         `json:"assetId,omitempty"`
	Datacenter string         `json:"datacenter,omitempty"`
	Location   string         `json:"location,omitempty"`
	Name       string         `json:"name,omitempty"`
	IsOnline   bool           `json:"isOnline,omitempty"`
	IsDeleted  bool           `json:"isDeleted,omitempty"`
	Details    *ServerDetails `json:"details,omitempty"`
}

func (*Server) DeepCompare

func (p *Server) DeepCompare(a *Server) bool

type ServerDetails

type ServerDetails struct {
	DetailsCreation
}

type ServerFilter

type ServerFilter struct {
	IsOnline   bool   `json:"isOnline,omitempty"`
	NotOnline  bool   `json:"notOnline,omitempty"`
	Deleted    bool   `json:"Deleted,omitempty"`
	NotDeleted bool   `json:"notDeleted,omitempty"`
	Datacenter string `json:"datacenter,omitempty"`
	Name       string `json:"name,omitempty"`
	AssetId    uint64 `json:"assetId,omitempty"`
}

type ServiceAttribute

type ServiceAttribute struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*ServiceAttribute) DeepCompare

func (t *ServiceAttribute) DeepCompare(a *ServiceAttribute) bool

func (*ServiceAttribute) DeepCompareSlice

func (t *ServiceAttribute) DeepCompareSlice(a *[]ServiceAttribute) bool

type State

type State struct {
	Name    string        `json:"Name,omitempty"`
	Details *StateDetails `json:"details,omitempty"`
}

type StateDetails

type StateDetails struct {
	DetailsCreation
}

type Status

type Status struct {
	Name    string         `json:"name,omitempty"`
	Details *StatusDetails `json:"details,omitempty"`
}

type StatusDetails

type StatusDetails struct {
	DetailsCreation
}

type SystemOperation

type SystemOperation struct {
	Request      string `json:"request,omitempty"`
	RepositoryId string `json:"repositoryId,omitempty"`
	RebuildLevel string `json:"rebuildLevel,omitempty"`
}

type Team

type Team struct {
	Id       string       `json:"id,omitempty"`
	Name     string       `json:"name,omitempty"`
	LdapId   string       `json:"ldapId,omitempty"`
	IsSystem bool         `json:"isSystem,omitempty"`
	Details  *TeamDetails `json:"details,omitempty"`
}

func (*Team) DeepCompare

func (p *Team) DeepCompare(a *Team) bool

type TeamDetails

type TeamDetails struct {
	DetailsCreation
}

type TeamFilter

type TeamFilter struct {
	Name     string `json:"name,omitempty"`
	LdapId   string `json:"ldapId,omitempty"`
	IsSystem bool   `json:"isSystem,omitempty"`
}

type Tree

type Tree struct {
	Id         string      `json:"id,omitempty"`
	Type       string      `json:"type,omitempty"`
	Repository *Repository `json:"repository,omitempty"`
	Bucket     *Bucket     `json:"bucket,omitempty"`
	Group      *Group      `json:"group,omitempty"`
	Cluster    *Cluster    `json:"cluster,omitempty"`
	Node       *Node       `json:"node,omitempty"`
}

type Unit

type Unit struct {
	Unit    string       `json:"unit,omitempty"`
	Name    string       `json:"name,omitempty"`
	Details *UnitDetails `json:"details,omitempty"`
}

func (*Unit) DeepCompare

func (p *Unit) DeepCompare(a *Unit) bool

type UnitDetails

type UnitDetails struct {
	DetailsCreation
}

type UnitFilter

type UnitFilter struct {
	Unit string `json:"unit,omitempty"`
	Name string `json:"name,omitempty"`
}

type User

type User struct {
	Id             string           `json:"id,omitempty"`
	UserName       string           `json:"userName,omitempty"`
	FirstName      string           `json:"firstName,omitempty"`
	LastName       string           `json:"lastName,omitempty"`
	EmployeeNumber string           `json:"employeeNumber,omitempty"`
	MailAddress    string           `json:"mailAddress,omitempty"`
	IsActive       bool             `json:"isActive,omitempty"`
	IsSystem       bool             `json:"isSystem,omitempty"`
	IsDeleted      bool             `json:"isDeleted,omitempty"`
	TeamId         string           `json:"teamId,omitempty"`
	Details        *UserDetails     `json:"details,omitempty"`
	Credentials    *UserCredentials `json:"credentials,omitempty"`
}

type UserCredentials

type UserCredentials struct {
	Reset          bool   `json:"reset,omitempty"`
	ForcedPassword string `json:"forcedPassword,omitempty"`
}

type UserDetails

type UserDetails struct {
	DetailsCreation
}

type UserFilter

type UserFilter struct {
	UserName  string `json:"userName,omitempty"`
	IsActive  bool   `json:"isActive,omitempty"`
	IsSystem  bool   `json:"isSystem,omitempty"`
	IsDeleted bool   `json:"isDeleted,omitempty"`
}

type Validity

type Validity struct {
	SystemProperty string           `json:"systemProperty,omitempty"`
	ObjectType     string           `json:"objectType,omitempty"`
	Direct         bool             `json:"direct,string,omitempty"`
	Inherited      bool             `json:"inherited,string,omitempty"`
	Details        *ValidityDetails `json:"details,omitempty"`
}

type ValidityDetails

type ValidityDetails struct {
	DetailsCreation
}

type View

type View struct {
	Name    string       `json:"name,omitempty"`
	Details *ViewDetails `json:"details,omitempty"`
}

type ViewDetails

type ViewDetails struct {
	DetailsCreation
}

Jump to

Keyboard shortcuts

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