server

package
v0.43.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.23.0

type Options struct {
	HTTPPort               int
	GRPCPort               int
	ExternalURL            string
	FrontendURL            string
	AllowedOrigins         []string
	SessionKeyPairs        [][]byte
	ServePrometheus        bool
	AuthDomain             string
	AuthClientID           string
	AuthClientSecret       string
	GithubAppName          string
	GithubAppWebhookSecret string
	GithubClientID         string
	GithubClientSecret     string
}

type Server

type Server struct {
	adminv1.UnsafeAdminServiceServer
	adminv1.UnsafeAIServiceServer
	adminv1.UnsafeTelemetryServiceServer
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, adm *admin.Service, issuer *runtimeauth.Issuer, limiter ratelimit.Limiter, activityClient *activity.Client, opts *Options) (*Server, error)

func (*Server) AddOrganizationMember added in v0.24.0

func (*Server) AddProjectMember added in v0.24.0

func (*Server) Complete added in v0.41.0

func (*Server) CreateAlert added in v0.41.0

func (*Server) CreateBookmark added in v0.30.0

CreateBookmark server creates a bookmark for the user per project

func (*Server) CreateProject

func (*Server) CreateReport added in v0.37.0

func (*Server) CreateService added in v0.31.0

CreateService creates a new service account.

func (*Server) CreateWhitelistedDomain added in v0.27.0

func (*Server) DeleteAlert added in v0.41.0

func (*Server) DeleteProject

func (*Server) DeleteReport added in v0.37.0

func (*Server) DeleteService added in v0.31.0

DeleteService deletes a service account.

func (*Server) EditAlert added in v0.41.0

func (*Server) EditReport added in v0.37.0

func (*Server) GenerateAlertYAML added in v0.41.0

func (*Server) GenerateReportYAML added in v0.37.0

func (*Server) GetAlertMeta added in v0.41.0

func (*Server) GetAlertYAML added in v0.41.0

func (*Server) GetBookmark added in v0.30.0

GetBookmark server returns the bookmark for the user per project

func (*Server) GetCurrentUser added in v0.23.0

func (*Server) GetDeploymentCredentials added in v0.33.2

GetDeploymentCredentials returns runtime info and JWT on behalf of a specific user, or alternatively for a raw set of JWT attributes

func (*Server) GetGitCredentials added in v0.27.1

func (*Server) GetGithubRepoStatus added in v0.23.0

func (*Server) GetGithubUserStatus added in v0.43.0

func (*Server) GetIFrame added in v0.38.0

func (*Server) GetOrganization added in v0.23.0

func (*Server) GetProject added in v0.23.0

func (*Server) GetProjectVariables added in v0.24.0

func (*Server) GetRepoMeta added in v0.37.0

func (*Server) GetReportMeta added in v0.37.0

func (*Server) GetUser added in v0.28.2

func (*Server) HTTPHandler added in v0.21.1

func (s *Server) HTTPHandler(ctx context.Context) (http.Handler, error)

HTTPHandler HTTP handler serving REST gateway.

func (*Server) IssueRepresentativeAuthToken added in v0.27.0

IssueRepresentativeAuthToken returns the temporary auth token for representing email

func (*Server) IssueServiceAuthToken added in v0.31.0

IssueServiceAuthToken issues a new auth token for a service account.

func (*Server) LeaveOrganization added in v0.24.0

func (*Server) ListBookmarks added in v0.30.0

ListBookmarks server returns the bookmarks for the user per project

func (*Server) ListOrganizationInvites added in v0.24.4

func (*Server) ListOrganizationMembers added in v0.24.0

func (*Server) ListOrganizations added in v0.23.0

func (*Server) ListProjectInvites added in v0.24.4

func (*Server) ListProjectMembers added in v0.24.0

func (*Server) ListProjectsForOrganization added in v0.24.0

func (*Server) ListServiceAuthTokens added in v0.31.0

ListServiceAuthTokens lists all auth tokens for a service account.

func (*Server) ListServices added in v0.31.0

ListServices lists all service accounts in an organization.

func (*Server) ListSuperusers added in v0.26.0

func (*Server) ListWhitelistedDomains added in v0.27.0

func (*Server) Ping added in v0.21.1

Ping implements AdminService

func (*Server) PullVirtualRepo added in v0.37.0

func (*Server) RecordEvents added in v0.42.0

func (*Server) RemoveBookmark added in v0.30.0

RemoveBookmark server removes a bookmark for bookmark id

func (*Server) RemoveOrganizationMember added in v0.24.0

func (*Server) RemoveProjectMember added in v0.24.0

func (*Server) RemoveWhitelistedDomain added in v0.27.0

func (*Server) RevokeCurrentAuthToken added in v0.23.0

RevokeCurrentAuthToken revokes the current auth token

func (*Server) RevokeServiceAuthToken added in v0.31.0

RevokServiceAuthToken revokes an auth token for a service account.

func (*Server) SearchProjectNames added in v0.29.0

func (*Server) SearchProjectUsers added in v0.33.2

SearchProjectUsers returns a list of users that match the given search/email query.

func (*Server) SearchUsers added in v0.27.0

func (*Server) ServeGRPC added in v0.21.1

func (s *Server) ServeGRPC(ctx context.Context) error

ServeGRPC Starts the gRPC server.

func (*Server) ServeHTTP added in v0.21.1

func (s *Server) ServeHTTP(ctx context.Context) error

Starts the HTTP server.

func (*Server) SetOrganizationMemberRole added in v0.24.0

func (*Server) SetProjectMemberRole added in v0.24.0

func (*Server) SetSuperuser added in v0.26.0

func (*Server) SudoGetResource added in v0.27.3

func (*Server) SudoUpdateAnnotations added in v0.40.0

SudoUpdateTags updates the tags for a project in organization for superusers

func (*Server) SudoUpdateOrganizationQuotas added in v0.28.2

func (*Server) SudoUpdateUserQuotas added in v0.28.2

func (*Server) TriggerReconcile added in v0.24.3

func (*Server) TriggerRedeploy added in v0.24.3

func (*Server) TriggerRefreshSources added in v0.24.3

func (*Server) TriggerReport added in v0.37.0

func (*Server) UnsubscribeAlert added in v0.41.0

func (*Server) UnsubscribeReport added in v0.37.0

func (*Server) UpdateBookmark added in v0.42.0

UpdateBookmark updates a bookmark for the given user for the given project

func (*Server) UpdateProject

func (*Server) UpdateProjectVariables added in v0.24.0

func (*Server) UpdateService added in v0.31.0

UpdateService updates a service account.

func (*Server) UpdateUserPreferences added in v0.30.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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