authority

package
v1.0.65 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(config Config) (*Client, error)

func (*Client) CountOrganizations added in v1.0.56

func (c *Client) CountOrganizations() (int64, error)

func (*Client) CountPeople added in v1.0.56

func (c *Client) CountPeople() (int64, error)

func (*Client) CountProjects added in v1.0.56

func (c *Client) CountProjects() (int64, error)

func (*Client) EnsureOrganizationSeedIndexExists added in v1.0.56

func (c *Client) EnsureOrganizationSeedIndexExists() error

func (*Client) EnsurePersonSeedIndexExists added in v1.0.56

func (c *Client) EnsurePersonSeedIndexExists() error

func (*Client) EnsureProjectSeedIndexExists added in v1.0.56

func (c *Client) EnsureProjectSeedIndexExists() error

func (*Client) GetOrganization

func (c *Client) GetOrganization(id string) (*models.Organization, error)

func (*Client) GetPerson

func (c *Client) GetPerson(id string) (*models.Person, error)

func (*Client) GetProject

func (c *Client) GetProject(id string) (*models.Project, error)

func (*Client) GetUser

func (c *Client) GetUser(id string) (*models.Person, error)

func (*Client) GetUserByUsername

func (c *Client) GetUserByUsername(username string) (*models.Person, error)

func (*Client) SeedOrganization added in v1.0.56

func (c *Client) SeedOrganization(data []byte) error

func (*Client) SeedPerson added in v1.0.56

func (c *Client) SeedPerson(data []byte) error

func (*Client) SeedProject added in v1.0.56

func (c *Client) SeedProject(data []byte) error

func (*Client) SuggestOrganizations

func (c *Client) SuggestOrganizations(q string) ([]models.Completion, error)

func (*Client) SuggestPeople

func (c *Client) SuggestPeople(q string) ([]*models.Person, error)

func (*Client) SuggestProjects

func (c *Client) SuggestProjects(q string) ([]*models.Project, error)

func (*Client) SuggestUsers

func (c *Client) SuggestUsers(q string) ([]*models.Person, error)

type Config

type Config struct {
	MongoDBURI string
	ESURI      []string
}

type M

type M map[string]any

Jump to

Keyboard shortcuts

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