Documentation ¶
Index ¶
- func RequireServers(env cfg.Context, servers ...schema.PackageName) compute.Computable[*ServerSnapshot]
- type ServerSnapshot
- func (snap *ServerSnapshot) Env() pkggraph.Context
- func (snap *ServerSnapshot) Equals(rhs *ServerSnapshot) bool
- func (snap *ServerSnapshot) Get(pkgs ...schema.PackageName) ([]planning.Server, error)
- func (snap *ServerSnapshot) Observe(ctx context.Context, onChange func(compute.ResultWithTimestamp[any], bool)) (func(), error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireServers ¶
func RequireServers(env cfg.Context, servers ...schema.PackageName) compute.Computable[*ServerSnapshot]
Types ¶
type ServerSnapshot ¶
type ServerSnapshot struct {
// contains filtered or unexported fields
}
func (*ServerSnapshot) Env ¶
func (snap *ServerSnapshot) Env() pkggraph.Context
func (*ServerSnapshot) Equals ¶
func (snap *ServerSnapshot) Equals(rhs *ServerSnapshot) bool
func (*ServerSnapshot) Get ¶
func (snap *ServerSnapshot) Get(pkgs ...schema.PackageName) ([]planning.Server, error)
func (*ServerSnapshot) Observe ¶
func (snap *ServerSnapshot) Observe(ctx context.Context, onChange func(compute.ResultWithTimestamp[any], bool)) (func(), error)
Click to show internal directories.
Click to hide internal directories.