projectv1

package
v0.0.0-...-0f6a5af Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_core_project_v1_project_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*Dependency) Descriptor deprecated

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

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetIds

func (x *Dependency) GetIds() []string

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect

func (x *Dependency) ProtoReflect() protoreflect.Message

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

func (*Dependency) Validate

func (m *Dependency) Validate() error

Validate checks the field values on Dependency with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Dependency) ValidateAll

func (m *Dependency) ValidateAll() error

ValidateAll checks the field values on Dependency with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DependencyMultiError, or nil if none found.

type DependencyMultiError

type DependencyMultiError []error

DependencyMultiError is an error wrapping multiple validation errors returned by Dependency.ValidateAll() if the designated constraints aren't met.

func (DependencyMultiError) AllErrors

func (m DependencyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DependencyMultiError) Error

func (m DependencyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DependencyValidationError

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

DependencyValidationError is the validation error returned by Dependency.Validate if the designated constraints aren't met.

func (DependencyValidationError) Cause

func (e DependencyValidationError) Cause() error

Cause function returns cause value.

func (DependencyValidationError) Error

Error satisfies the builtin error interface

func (DependencyValidationError) ErrorName

func (e DependencyValidationError) ErrorName() string

ErrorName returns error name.

func (DependencyValidationError) Field

Field function returns field value.

func (DependencyValidationError) Key

Key function returns key value.

func (DependencyValidationError) Reason

func (e DependencyValidationError) Reason() string

Reason function returns reason value.

type Link 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"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetName

func (x *Link) GetName() string

func (*Link) GetUrl

func (x *Link) GetUrl() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

func (*Link) Validate

func (m *Link) Validate() error

Validate checks the field values on Link with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Link) ValidateAll

func (m *Link) ValidateAll() error

ValidateAll checks the field values on Link with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LinkMultiError, or nil if none found.

type LinkGroup

type LinkGroup struct {
	Name      string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Links     []*Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
	ImagePath string  `protobuf:"bytes,3,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"` // Can be an s3 location, path on the server, etc.
	// contains filtered or unexported fields
}

func (*LinkGroup) Descriptor deprecated

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

Deprecated: Use LinkGroup.ProtoReflect.Descriptor instead.

func (*LinkGroup) GetImagePath

func (x *LinkGroup) GetImagePath() string
func (x *LinkGroup) GetLinks() []*Link

func (*LinkGroup) GetName

func (x *LinkGroup) GetName() string

func (*LinkGroup) ProtoMessage

func (*LinkGroup) ProtoMessage()

func (*LinkGroup) ProtoReflect

func (x *LinkGroup) ProtoReflect() protoreflect.Message

func (*LinkGroup) Reset

func (x *LinkGroup) Reset()

func (*LinkGroup) String

func (x *LinkGroup) String() string

func (*LinkGroup) Validate

func (m *LinkGroup) Validate() error

Validate checks the field values on LinkGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LinkGroup) ValidateAll

func (m *LinkGroup) ValidateAll() error

ValidateAll checks the field values on LinkGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LinkGroupMultiError, or nil if none found.

type LinkGroupMultiError

type LinkGroupMultiError []error

LinkGroupMultiError is an error wrapping multiple validation errors returned by LinkGroup.ValidateAll() if the designated constraints aren't met.

func (LinkGroupMultiError) AllErrors

func (m LinkGroupMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LinkGroupMultiError) Error

func (m LinkGroupMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LinkGroupValidationError

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

LinkGroupValidationError is the validation error returned by LinkGroup.Validate if the designated constraints aren't met.

func (LinkGroupValidationError) Cause

func (e LinkGroupValidationError) Cause() error

Cause function returns cause value.

func (LinkGroupValidationError) Error

func (e LinkGroupValidationError) Error() string

Error satisfies the builtin error interface

func (LinkGroupValidationError) ErrorName

func (e LinkGroupValidationError) ErrorName() string

ErrorName returns error name.

func (LinkGroupValidationError) Field

func (e LinkGroupValidationError) Field() string

Field function returns field value.

func (LinkGroupValidationError) Key

Key function returns key value.

func (LinkGroupValidationError) Reason

func (e LinkGroupValidationError) Reason() string

Reason function returns reason value.

type LinkMultiError

type LinkMultiError []error

LinkMultiError is an error wrapping multiple validation errors returned by Link.ValidateAll() if the designated constraints aren't met.

func (LinkMultiError) AllErrors

func (m LinkMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LinkMultiError) Error

func (m LinkMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LinkValidationError

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

LinkValidationError is the validation error returned by Link.Validate if the designated constraints aren't met.

func (LinkValidationError) Cause

func (e LinkValidationError) Cause() error

Cause function returns cause value.

func (LinkValidationError) Error

func (e LinkValidationError) Error() string

Error satisfies the builtin error interface

func (LinkValidationError) ErrorName

func (e LinkValidationError) ErrorName() string

ErrorName returns error name.

func (LinkValidationError) Field

func (e LinkValidationError) Field() string

Field function returns field value.

func (LinkValidationError) Key

func (e LinkValidationError) Key() bool

Key function returns key value.

func (LinkValidationError) Reason

func (e LinkValidationError) Reason() string

Reason function returns reason value.

type OnCall

type OnCall struct {
	Pagerduty *PagerDuty `protobuf:"bytes,1,opt,name=pagerduty,proto3" json:"pagerduty,omitempty"`
	// contains filtered or unexported fields
}

Oncall information that could come from several sources for a project From active alerts from source like pagerduty, to who is currently on call.

func (*OnCall) Descriptor deprecated

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

Deprecated: Use OnCall.ProtoReflect.Descriptor instead.

func (*OnCall) GetPagerduty

func (x *OnCall) GetPagerduty() *PagerDuty

func (*OnCall) ProtoMessage

func (*OnCall) ProtoMessage()

func (*OnCall) ProtoReflect

func (x *OnCall) ProtoReflect() protoreflect.Message

func (*OnCall) Reset

func (x *OnCall) Reset()

func (*OnCall) String

func (x *OnCall) String() string

func (*OnCall) Validate

func (m *OnCall) Validate() error

Validate checks the field values on OnCall with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OnCall) ValidateAll

func (m *OnCall) ValidateAll() error

ValidateAll checks the field values on OnCall with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OnCallMultiError, or nil if none found.

type OnCallMultiError

type OnCallMultiError []error

OnCallMultiError is an error wrapping multiple validation errors returned by OnCall.ValidateAll() if the designated constraints aren't met.

func (OnCallMultiError) AllErrors

func (m OnCallMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OnCallMultiError) Error

func (m OnCallMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OnCallValidationError

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

OnCallValidationError is the validation error returned by OnCall.Validate if the designated constraints aren't met.

func (OnCallValidationError) Cause

func (e OnCallValidationError) Cause() error

Cause function returns cause value.

func (OnCallValidationError) Error

func (e OnCallValidationError) Error() string

Error satisfies the builtin error interface

func (OnCallValidationError) ErrorName

func (e OnCallValidationError) ErrorName() string

ErrorName returns error name.

func (OnCallValidationError) Field

func (e OnCallValidationError) Field() string

Field function returns field value.

func (OnCallValidationError) Key

func (e OnCallValidationError) Key() bool

Key function returns key value.

func (OnCallValidationError) Reason

func (e OnCallValidationError) Reason() string

Reason function returns reason value.

type PagerDuty

type PagerDuty struct {

	// A project may have more than one PagerDuty service id
	// https://developer.pagerduty.com/api-reference/docs/CONCEPTS.md#services
	ServiceIds []string `protobuf:"bytes,1,rep,name=service_ids,json=serviceIds,proto3" json:"service_ids,omitempty"`
	// contains filtered or unexported fields
}

PagerDuty specific information for a project

func (*PagerDuty) Descriptor deprecated

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

Deprecated: Use PagerDuty.ProtoReflect.Descriptor instead.

func (*PagerDuty) GetServiceIds

func (x *PagerDuty) GetServiceIds() []string

func (*PagerDuty) ProtoMessage

func (*PagerDuty) ProtoMessage()

func (*PagerDuty) ProtoReflect

func (x *PagerDuty) ProtoReflect() protoreflect.Message

func (*PagerDuty) Reset

func (x *PagerDuty) Reset()

func (*PagerDuty) String

func (x *PagerDuty) String() string

func (*PagerDuty) Validate

func (m *PagerDuty) Validate() error

Validate checks the field values on PagerDuty with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PagerDuty) ValidateAll

func (m *PagerDuty) ValidateAll() error

ValidateAll checks the field values on PagerDuty with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PagerDutyMultiError, or nil if none found.

type PagerDutyMultiError

type PagerDutyMultiError []error

PagerDutyMultiError is an error wrapping multiple validation errors returned by PagerDuty.ValidateAll() if the designated constraints aren't met.

func (PagerDutyMultiError) AllErrors

func (m PagerDutyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PagerDutyMultiError) Error

func (m PagerDutyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PagerDutyValidationError

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

PagerDutyValidationError is the validation error returned by PagerDuty.Validate if the designated constraints aren't met.

func (PagerDutyValidationError) Cause

func (e PagerDutyValidationError) Cause() error

Cause function returns cause value.

func (PagerDutyValidationError) Error

func (e PagerDutyValidationError) Error() string

Error satisfies the builtin error interface

func (PagerDutyValidationError) ErrorName

func (e PagerDutyValidationError) ErrorName() string

ErrorName returns error name.

func (PagerDutyValidationError) Field

func (e PagerDutyValidationError) Field() string

Field function returns field value.

func (PagerDutyValidationError) Key

Key function returns key value.

func (PagerDutyValidationError) Reason

func (e PagerDutyValidationError) Reason() string

Reason function returns reason value.

type Project

type Project struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Tier      string   `protobuf:"bytes,2,opt,name=tier,proto3" json:"tier,omitempty"`
	Owners    []string `protobuf:"bytes,3,rep,name=owners,proto3" json:"owners,omitempty"`
	Languages []string `protobuf:"bytes,4,rep,name=languages,proto3" json:"languages,omitempty"`
	// Allows an organization to populate any information they see fit that does not fit our schema
	Data         map[string]*structpb.Value `` /* 149-byte string literal not displayed */
	Dependencies *ProjectDependencies       `protobuf:"bytes,6,opt,name=dependencies,proto3" json:"dependencies,omitempty"`
	Oncall       *OnCall                    `protobuf:"bytes,7,opt,name=oncall,proto3" json:"oncall,omitempty"`
	LinkGroups   []*LinkGroup               `protobuf:"bytes,8,rep,name=link_groups,json=linkGroups,proto3" json:"link_groups,omitempty"`
	// contains filtered or unexported fields
}

A project is the logical abstraction for a service, library, mobile app, etc. Adding this higher level primitive will enable a more generic way of addressing commonalities between various system types.

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetData

func (x *Project) GetData() map[string]*structpb.Value

func (*Project) GetDependencies

func (x *Project) GetDependencies() *ProjectDependencies

func (*Project) GetLanguages

func (x *Project) GetLanguages() []string

func (*Project) GetLinkGroups

func (x *Project) GetLinkGroups() []*LinkGroup

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetOncall

func (x *Project) GetOncall() *OnCall

func (*Project) GetOwners

func (x *Project) GetOwners() []string

func (*Project) GetTier

func (x *Project) GetTier() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

func (*Project) Validate

func (m *Project) Validate() error

Validate checks the field values on Project with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Project) ValidateAll

func (m *Project) ValidateAll() error

ValidateAll checks the field values on Project with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectMultiError, or nil if none found.

type ProjectDependencies

type ProjectDependencies struct {

	// The key in this map is the type_url of the dependency
	Upstreams   map[string]*Dependency `` /* 159-byte string literal not displayed */
	Downstreams map[string]*Dependency `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

Dependencies could be either upstream or downstream of this project.

func (*ProjectDependencies) Descriptor deprecated

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

Deprecated: Use ProjectDependencies.ProtoReflect.Descriptor instead.

func (*ProjectDependencies) GetDownstreams

func (x *ProjectDependencies) GetDownstreams() map[string]*Dependency

func (*ProjectDependencies) GetUpstreams

func (x *ProjectDependencies) GetUpstreams() map[string]*Dependency

func (*ProjectDependencies) ProtoMessage

func (*ProjectDependencies) ProtoMessage()

func (*ProjectDependencies) ProtoReflect

func (x *ProjectDependencies) ProtoReflect() protoreflect.Message

func (*ProjectDependencies) Reset

func (x *ProjectDependencies) Reset()

func (*ProjectDependencies) String

func (x *ProjectDependencies) String() string

func (*ProjectDependencies) Validate

func (m *ProjectDependencies) Validate() error

Validate checks the field values on ProjectDependencies with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProjectDependencies) ValidateAll

func (m *ProjectDependencies) ValidateAll() error

ValidateAll checks the field values on ProjectDependencies with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectDependenciesMultiError, or nil if none found.

type ProjectDependenciesMultiError

type ProjectDependenciesMultiError []error

ProjectDependenciesMultiError is an error wrapping multiple validation errors returned by ProjectDependencies.ValidateAll() if the designated constraints aren't met.

func (ProjectDependenciesMultiError) AllErrors

func (m ProjectDependenciesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectDependenciesMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProjectDependenciesValidationError

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

ProjectDependenciesValidationError is the validation error returned by ProjectDependencies.Validate if the designated constraints aren't met.

func (ProjectDependenciesValidationError) Cause

Cause function returns cause value.

func (ProjectDependenciesValidationError) Error

Error satisfies the builtin error interface

func (ProjectDependenciesValidationError) ErrorName

ErrorName returns error name.

func (ProjectDependenciesValidationError) Field

Field function returns field value.

func (ProjectDependenciesValidationError) Key

Key function returns key value.

func (ProjectDependenciesValidationError) Reason

Reason function returns reason value.

type ProjectMultiError

type ProjectMultiError []error

ProjectMultiError is an error wrapping multiple validation errors returned by Project.ValidateAll() if the designated constraints aren't met.

func (ProjectMultiError) AllErrors

func (m ProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectMultiError) Error

func (m ProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProjectValidationError

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

ProjectValidationError is the validation error returned by Project.Validate if the designated constraints aren't met.

func (ProjectValidationError) Cause

func (e ProjectValidationError) Cause() error

Cause function returns cause value.

func (ProjectValidationError) Error

func (e ProjectValidationError) Error() string

Error satisfies the builtin error interface

func (ProjectValidationError) ErrorName

func (e ProjectValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectValidationError) Field

func (e ProjectValidationError) Field() string

Field function returns field value.

func (ProjectValidationError) Key

func (e ProjectValidationError) Key() bool

Key function returns key value.

func (ProjectValidationError) Reason

func (e ProjectValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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