Documentation ¶
Index ¶
- type Copier
- type CopierOption
- type Option
- func AsOptions(opts ...[]Option) []Option
- func WithCodeOptions(options ...codec.Option) Option
- func WithComponent(component *repository.Component) Option
- func WithEmbeddedFS(fs *embed.FS) Option
- func WithLocatorOptions(options ...locator.Option) Option
- func WithLocators(locators *locator.KindLocator) Option
- func WithOperate(...) Option
- func WithRegistry(registry *repository.Registry) Option
- func WithReportNotAssignable(flag bool) Option
- func WithScope(scope string) Option
- func WithStateResource(resource state.Resource) Option
- func WithTypes(types ...*state.Type) Option
- type Options
- func (o *Options) AddCodec(option codec.Option)
- func (o *Options) AddLocator(option locator.Option)
- func (o *Options) AddLocators(options ...locator.Option)
- func (o *Options) Clone() *Options
- func (o *Options) HasInputParameters() bool
- func (o *Options) Indirect(flag bool, options ...locator.Option) *Options
- func (o *Options) Operate() ...
- func (o *Options) Registry() *repository.Registry
- func (o *Options) State() *view.State
- type Redirect
- type Session
- func (s *Session) Apply(opts ...Option)
- func (s *Session) ClearCache(parameters state.Parameters)
- func (s *Session) Context(ctx context.Context, forceNew bool) context.Context
- func (s *Session) HttpRequest(ctx context.Context, options *Options) (*http.Request, error)
- func (s *Session) InitKinds(kinds ...state.Kind) error
- func (s *Session) Into(ctx context.Context, dest interface{}, opts ...hstate.Option) (err error)
- func (s *Session) LoadState(parameters state.Parameters, aState interface{}) error
- func (s *Session) LookupValue(ctx context.Context, parameter *state.Parameter, opts *Options) (value interface{}, has bool, err error)
- func (s *Session) MarshalJSON() ([]byte, error)
- func (s *Session) Populate(ctx context.Context) error
- func (s *Session) ReadInto(ctx context.Context, dest interface{}, aView *view.View) error
- func (s *Session) ResetViewState(ctx context.Context, aView *view.View) error
- func (s *Session) SetCacheValue(ctx context.Context, parameter *state.Parameter, value interface{}) error
- func (s *Session) SetState(ctx context.Context, parameters state.Parameters, aState *structology.State, ...) error
- func (s *Session) SetView(view *view.View)
- func (s *Session) SetViewState(ctx context.Context, aView *view.View) error
- func (s *Session) Unmarshal(parameters state.Parameters, data []byte) error
- func (s *Session) Value(ctx context.Context, key string) (interface{}, bool, error)
- func (s *Session) ValuesOf(ctx context.Context, any interface{}) (map[string]interface{}, error)
- func (s *Session) ViewOptions(aView *view.View, opts ...Option) *Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copier ¶
type Copier struct {
// contains filtered or unexported fields
}
Copier copies data between struct
func (*Copier) Copy ¶
func (c *Copier) Copy(src interface{}, dest interface{}, opts ...CopierOption) error
Copy copes field with the same name (initial version)
type CopierOption ¶
type CopierOption func(o *copierOptions)
Copier copies data between struct
func WithDebug ¶
func WithDebug() CopierOption
type Option ¶
type Option func(o *Options)
func WithCodeOptions ¶
func WithComponent ¶ added in v0.9.14
func WithComponent(component *repository.Component) Option
func WithEmbeddedFS ¶
func WithLocatorOptions ¶
func WithLocators ¶
func WithLocators(locators *locator.KindLocator) Option
func WithOperate ¶ added in v0.9.14
func WithRegistry ¶ added in v0.9.13
func WithRegistry(registry *repository.Registry) Option
func WithReportNotAssignable ¶
func WithStateResource ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func (*Options) AddLocator ¶
func (*Options) AddLocators ¶
func (*Options) HasInputParameters ¶ added in v0.9.7
func (*Options) Registry ¶ added in v0.9.13
func (o *Options) Registry() *repository.Registry
type Session ¶
type Session struct { Options Types state.Types Redirect *Redirect // contains filtered or unexported fields }
func (*Session) ClearCache ¶
func (s *Session) ClearCache(parameters state.Parameters)
func (*Session) HttpRequest ¶
func (*Session) LoadState ¶
func (s *Session) LoadState(parameters state.Parameters, aState interface{}) error
func (*Session) LookupValue ¶
func (*Session) MarshalJSON ¶
func (*Session) ResetViewState ¶
ResetViewState sets view state
func (*Session) SetCacheValue ¶
func (s *Session) SetCacheValue(ctx context.Context, parameter *state.Parameter, value interface{}) error
SetCacheValue sets cache value
func (*Session) SetState ¶
func (s *Session) SetState(ctx context.Context, parameters state.Parameters, aState *structology.State, opts *Options) error
func (*Session) SetViewState ¶
SetViewState sets view state as long state has not been populated
func (*Session) Unmarshal ¶
func (s *Session) Unmarshal(parameters state.Parameters, data []byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.