Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for OptionFunc (0.17 sec)

  1. pkg/test/framework/resource/config/apply/option.go

    	// Set this option on the provided Options
    	Set(*Options)
    }
    
    // OptionFunc is a function-based Option.
    type OptionFunc func(*Options)
    
    // Set just invokes this function to update the Options.
    func (f OptionFunc) Set(opts *Options) {
    	f(opts)
    }
    
    // NoCleanup is an Option that disables config cleanup.
    var NoCleanup Option = OptionFunc(func(opts *Options) {
    	opts.Cleanup = cleanup.None
    })
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 17 02:49:07 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top