gitlab.com/evatix-go/core@v1.3.55/coretaskinfo/newInfoSecureTextCreator.go (about)

     1  package coretaskinfo
     2  
     3  type newInfoSecureTextCreator struct{}
     4  
     5  func (it newInfoSecureTextCreator) Default(
     6  	name, desc, url string,
     7  ) *Info {
     8  	return &Info{
     9  		RootName:    name,
    10  		Description: desc,
    11  		Url:         url,
    12  		ExcludeOptions: &ExcludingOptions{
    13  			IsSecureText: true,
    14  		},
    15  	}
    16  }
    17  
    18  func (it newInfoSecureTextCreator) NameDescUrl(
    19  	name, desc, url string,
    20  ) *Info {
    21  	return &Info{
    22  		RootName:    name,
    23  		Description: desc,
    24  		Url:         url,
    25  		ExcludeOptions: &ExcludingOptions{
    26  			IsSecureText: true,
    27  		},
    28  	}
    29  }
    30  
    31  func (it newInfoSecureTextCreator) NameDescUrlExamples(
    32  	name, desc, url string,
    33  	examples ...string,
    34  ) *Info {
    35  	return &Info{
    36  		RootName:    name,
    37  		Description: desc,
    38  		Url:         url,
    39  		Examples:    examples,
    40  		ExcludeOptions: &ExcludingOptions{
    41  			IsSecureText: true,
    42  		},
    43  	}
    44  }
    45  
    46  func (it newInfoSecureTextCreator) NewNameDescUrlErrorUrl(
    47  	name, desc,
    48  	url, errUrl string,
    49  ) *Info {
    50  	return &Info{
    51  		RootName:    name,
    52  		Description: desc,
    53  		Url:         url,
    54  		ErrorUrl:    errUrl,
    55  		ExcludeOptions: &ExcludingOptions{
    56  			IsSecureText: true,
    57  		},
    58  	}
    59  }
    60  
    61  func (it newInfoSecureTextCreator) NameDescUrlErrUrlExamples(
    62  	name, desc,
    63  	url, errUrl string,
    64  	examples ...string,
    65  ) *Info {
    66  	return &Info{
    67  		RootName:    name,
    68  		Description: desc,
    69  		Url:         url,
    70  		ErrorUrl:    errUrl,
    71  		Examples:    examples,
    72  		ExcludeOptions: &ExcludingOptions{
    73  			IsSecureText: true,
    74  		},
    75  	}
    76  }
    77  
    78  func (it newInfoSecureTextCreator) NameDescExamples(
    79  	name, desc string,
    80  	examples ...string,
    81  ) *Info {
    82  	return &Info{
    83  		RootName:    name,
    84  		Description: desc,
    85  		Examples:    examples,
    86  		ExcludeOptions: &ExcludingOptions{
    87  			IsSecureText: true,
    88  		},
    89  	}
    90  }
    91  
    92  func (it newInfoSecureTextCreator) Examples(
    93  	name, desc string,
    94  	examples ...string,
    95  ) *Info {
    96  	return &Info{
    97  		RootName:    name,
    98  		Description: desc,
    99  		Examples:    examples,
   100  		ExcludeOptions: &ExcludingOptions{
   101  			IsSecureText: true,
   102  		},
   103  	}
   104  }
   105  
   106  func (it newInfoSecureTextCreator) ExamplesOnly(
   107  	examples ...string,
   108  ) *Info {
   109  	return &Info{
   110  		Examples: examples,
   111  		ExcludeOptions: &ExcludingOptions{
   112  			IsSecureText: true,
   113  		},
   114  	}
   115  }
   116  
   117  func (it newInfoSecureTextCreator) UrlOnly(
   118  	url string,
   119  ) *Info {
   120  	return &Info{
   121  		Url: url,
   122  		ExcludeOptions: &ExcludingOptions{
   123  			IsSecureText: true,
   124  		},
   125  	}
   126  }
   127  
   128  func (it newInfoSecureTextCreator) ErrorUrlOnly(
   129  	errUrl string,
   130  ) *Info {
   131  	return &Info{
   132  		ErrorUrl: errUrl,
   133  		ExcludeOptions: &ExcludingOptions{
   134  			IsSecureText: true,
   135  		},
   136  	}
   137  }
   138  
   139  func (it newInfoSecureTextCreator) HintUrlOnly(
   140  	hintUrl string,
   141  ) *Info {
   142  	return &Info{
   143  		HintUrl: hintUrl,
   144  		ExcludeOptions: &ExcludingOptions{
   145  			IsSecureText: true,
   146  		},
   147  	}
   148  }
   149  
   150  func (it newInfoSecureTextCreator) DescHintUrlOnly(
   151  	desc, hintUrl string,
   152  ) *Info {
   153  	return &Info{
   154  		Description: desc,
   155  		HintUrl:     hintUrl,
   156  	}
   157  }
   158  
   159  func (it newInfoSecureTextCreator) NameHintUrlOnly(
   160  	name, hintUrl string,
   161  ) *Info {
   162  	return &Info{
   163  		RootName: name,
   164  		HintUrl:  hintUrl,
   165  		ExcludeOptions: &ExcludingOptions{
   166  			IsSecureText: true,
   167  		},
   168  	}
   169  }
   170  
   171  func (it newInfoSecureTextCreator) SingleExampleOnly(
   172  	singleExample string,
   173  ) *Info {
   174  	return &Info{
   175  		SingleExample: singleExample,
   176  		ExcludeOptions: &ExcludingOptions{
   177  			IsSecureText: true,
   178  		},
   179  	}
   180  }
   181  
   182  func (it newInfoSecureTextCreator) AllUrlExamples(
   183  	name, desc string,
   184  	url, hintUrl, errUrl string,
   185  	examples ...string,
   186  ) *Info {
   187  	return &Info{
   188  		RootName:    name,
   189  		Description: desc,
   190  		Url:         url,
   191  		HintUrl:     hintUrl,
   192  		ErrorUrl:    errUrl,
   193  		Examples:    examples,
   194  		ExcludeOptions: &ExcludingOptions{
   195  			IsSecureText: true,
   196  		},
   197  	}
   198  }
   199  
   200  func (it newInfoSecureTextCreator) AllUrl(
   201  	name, desc string,
   202  	url, hintUrl, errUrl string,
   203  ) *Info {
   204  	return &Info{
   205  		RootName:    name,
   206  		Description: desc,
   207  		Url:         url,
   208  		HintUrl:     hintUrl,
   209  		ErrorUrl:    errUrl,
   210  		ExcludeOptions: &ExcludingOptions{
   211  			IsSecureText: true,
   212  		},
   213  	}
   214  }
   215  
   216  func (it newInfoSecureTextCreator) UrlSingleExample(
   217  	name, desc string,
   218  	url string,
   219  	chainingExample string,
   220  ) *Info {
   221  	return &Info{
   222  		RootName:      name,
   223  		Description:   desc,
   224  		Url:           url,
   225  		SingleExample: chainingExample,
   226  		ExcludeOptions: &ExcludingOptions{
   227  			IsSecureText: true,
   228  		},
   229  	}
   230  }
   231  
   232  func (it newInfoSecureTextCreator) SingleExample(
   233  	name, desc string,
   234  	singleExample string,
   235  ) *Info {
   236  	return &Info{
   237  		RootName:      name,
   238  		Description:   desc,
   239  		SingleExample: singleExample,
   240  		ExcludeOptions: &ExcludingOptions{
   241  			IsSecureText: true,
   242  		},
   243  	}
   244  }
   245  
   246  func (it newInfoSecureTextCreator) ExampleUrl(
   247  	name, desc string,
   248  	exampleUrl string,
   249  	singleExample string,
   250  ) *Info {
   251  	return &Info{
   252  		RootName:      name,
   253  		Description:   desc,
   254  		ExampleUrl:    exampleUrl,
   255  		SingleExample: singleExample,
   256  		ExcludeOptions: &ExcludingOptions{
   257  			IsSecureText: true,
   258  		},
   259  	}
   260  }
   261  
   262  func (it newInfoSecureTextCreator) ExampleUrlSingleExample(
   263  	name, desc string,
   264  	exampleUrl string,
   265  	singleExample string,
   266  ) *Info {
   267  	return &Info{
   268  		RootName:      name,
   269  		Description:   desc,
   270  		ExampleUrl:    exampleUrl,
   271  		SingleExample: singleExample,
   272  		ExcludeOptions: &ExcludingOptions{
   273  			IsSecureText: true,
   274  		},
   275  	}
   276  }
   277  
   278  func (it newInfoSecureTextCreator) NewExampleUrlSecure(
   279  	name, desc string,
   280  	exampleUrl string,
   281  	chainingExample string,
   282  ) *Info {
   283  	return &Info{
   284  		RootName:      name,
   285  		Description:   desc,
   286  		ExampleUrl:    exampleUrl,
   287  		SingleExample: chainingExample,
   288  		Examples:      nil,
   289  		ExcludeOptions: &ExcludingOptions{
   290  			IsSecureText: true,
   291  		},
   292  	}
   293  }