Documentation

Overview

    Package memory contains a RPC servers backed by in-memory storage.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Config

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

      Config implements config.ConfigurationServer.

      func (*Config) Delete

      func (srv *Config) Delete(c context.Context, req *config.DeleteRequest) (*empty.Empty, error)

        Delete handles a request to delete a config.

        func (*Config) Ensure

        func (srv *Config) Ensure(c context.Context, req *config.EnsureRequest) (*config.Config, error)

          Ensure handles a request to create or update a config.

          func (*Config) Get

          func (srv *Config) Get(c context.Context, req *config.GetRequest) (*config.Config, error)

            Get handles a request to get a config.

            func (*Config) List

            func (srv *Config) List(c context.Context, req *config.ListRequest) (*config.ListResponse, error)

              List handles a request to list all configs.

              func (*Config) Update

              func (srv *Config) Update(c context.Context, req *config.UpdateRequest) (*config.Config, error)

                Update handles a request to update a config.

                type Projects

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

                  Projects implements projects.ProjectsServer.

                  func (*Projects) Delete

                  func (srv *Projects) Delete(c context.Context, req *projects.DeleteRequest) (*empty.Empty, error)

                    Delete handles a request to delete a project.

                    func (*Projects) Ensure

                    func (srv *Projects) Ensure(c context.Context, req *projects.EnsureRequest) (*projects.Config, error)

                      Ensure handles a request to create or update a project.

                      func (*Projects) Get

                      func (srv *Projects) Get(c context.Context, req *projects.GetRequest) (*projects.Config, error)

                        Get handles a request to get a project.

                        func (*Projects) List

                        func (srv *Projects) List(c context.Context, req *projects.ListRequest) (*projects.ListResponse, error)

                          List handles a request to list all projects.