Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_MiniDevOps_core_config_proto protoreflect.FileDescriptor
Functions ¶
func CreateObject ¶
CreateObject creates a new object based on the given Galaxy instance and config. The Galaxy instance may be nil.
func RequireFeatures ¶
func ServerType ¶
func ServerType() interface{}
Types ¶
type Config ¶
type Config struct { Features []*any.Any `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetFeatures ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func FromContext ¶
FromContext returns an Instance from the given context, or nil if the context doesn't contain one.
func MustFromContext ¶
MustFromContext returns an Instance from the given context, or panics if not present.
func (*Instance) AddFeature ¶
AddFeature registers a feature into current Instance.
func (*Instance) RequireFeatures ¶
RequireFeatures registers a callback, which will be called when all dependent features are registered. The callback must be a func(). All its parameters must be features.Feature.
Click to show internal directories.
Click to hide internal directories.