github.com/octohelm/wagon@v0.0.0-20240308040401-88662650dc0b/pkg/engine/plan/task/core/zz_generated.runtimedoc.go (about)

     1  /*
     2  Package core GENERATED BY gengo:runtimedoc 
     3  DON'T EDIT THIS FILE
     4  */
     5  package core
     6  
     7  // nolint:deadcode,unused
     8  func runtimeDoc(v any, names ...string) ([]string, bool) {
     9  	if c, ok := v.(interface {
    10  		RuntimeDoc(names ...string) ([]string, bool)
    11  	}); ok {
    12  		return c.RuntimeDoc(names...)
    13  	}
    14  	return nil, false
    15  }
    16  
    17  func (v Auth) RuntimeDoc(names ...string) ([]string, bool) {
    18  	if len(names) > 0 {
    19  		switch names[0] {
    20  		case "Username":
    21  			return []string{}, true
    22  		case "Secret":
    23  			return []string{}, true
    24  
    25  		}
    26  
    27  		return nil, false
    28  	}
    29  	return []string{}, true
    30  }
    31  
    32  func (v CacheDir) RuntimeDoc(names ...string) ([]string, bool) {
    33  	if len(names) > 0 {
    34  		switch names[0] {
    35  		case "ID":
    36  			return []string{}, true
    37  		case "Concurrency":
    38  			return []string{}, true
    39  
    40  		}
    41  
    42  		return nil, false
    43  	}
    44  	return []string{}, true
    45  }
    46  
    47  func (v FS) RuntimeDoc(names ...string) ([]string, bool) {
    48  	if len(names) > 0 {
    49  		switch names[0] {
    50  
    51  		}
    52  
    53  		return nil, false
    54  	}
    55  	return []string{}, true
    56  }
    57  
    58  func (v Image) RuntimeDoc(names ...string) ([]string, bool) {
    59  	if len(names) > 0 {
    60  		switch names[0] {
    61  		case "Rootfs":
    62  			return []string{}, true
    63  		case "Config":
    64  			return []string{}, true
    65  		case "Platform":
    66  			return []string{}, true
    67  
    68  		}
    69  
    70  		return nil, false
    71  	}
    72  	return []string{}, true
    73  }
    74  
    75  func (v ImageConfig) RuntimeDoc(names ...string) ([]string, bool) {
    76  	if len(names) > 0 {
    77  		switch names[0] {
    78  		case "WorkingDir":
    79  			return []string{}, true
    80  		case "Env":
    81  			return []string{}, true
    82  		case "Labels":
    83  			return []string{}, true
    84  		case "Entrypoint":
    85  			return []string{}, true
    86  		case "Cmd":
    87  			return []string{}, true
    88  		case "User":
    89  			return []string{}, true
    90  
    91  		}
    92  
    93  		return nil, false
    94  	}
    95  	return []string{}, true
    96  }
    97  
    98  func (v Mount) RuntimeDoc(names ...string) ([]string, bool) {
    99  	if len(names) > 0 {
   100  		switch names[0] {
   101  		case "Mounter":
   102  			return []string{}, true
   103  
   104  		}
   105  		if doc, ok := runtimeDoc(v.Mounter, names...); ok {
   106  			return doc, ok
   107  		}
   108  
   109  		return nil, false
   110  	}
   111  	return []string{}, true
   112  }
   113  
   114  func (v MountCacheDir) RuntimeDoc(names ...string) ([]string, bool) {
   115  	if len(names) > 0 {
   116  		switch names[0] {
   117  		case "Type":
   118  			return []string{}, true
   119  		case "Dest":
   120  			return []string{}, true
   121  		case "Contents":
   122  			return []string{}, true
   123  
   124  		}
   125  
   126  		return nil, false
   127  	}
   128  	return []string{}, true
   129  }
   130  
   131  func (v MountFile) RuntimeDoc(names ...string) ([]string, bool) {
   132  	if len(names) > 0 {
   133  		switch names[0] {
   134  		case "Type":
   135  			return []string{}, true
   136  		case "Dest":
   137  			return []string{}, true
   138  		case "Contents":
   139  			return []string{}, true
   140  		case "Permissions":
   141  			return []string{}, true
   142  
   143  		}
   144  
   145  		return nil, false
   146  	}
   147  	return []string{}, true
   148  }
   149  
   150  func (v MountFs) RuntimeDoc(names ...string) ([]string, bool) {
   151  	if len(names) > 0 {
   152  		switch names[0] {
   153  		case "Type":
   154  			return []string{}, true
   155  		case "Contents":
   156  			return []string{}, true
   157  		case "Dest":
   158  			return []string{}, true
   159  		case "Source":
   160  			return []string{}, true
   161  		case "ReadOnly":
   162  			return []string{}, true
   163  
   164  		}
   165  
   166  		return nil, false
   167  	}
   168  	return []string{}, true
   169  }
   170  
   171  func (v MountSecret) RuntimeDoc(names ...string) ([]string, bool) {
   172  	if len(names) > 0 {
   173  		switch names[0] {
   174  		case "Type":
   175  			return []string{}, true
   176  		case "Dest":
   177  			return []string{}, true
   178  		case "Contents":
   179  			return []string{}, true
   180  		case "Uid":
   181  			return []string{}, true
   182  		case "Gid":
   183  			return []string{}, true
   184  		case "Mask":
   185  			return []string{}, true
   186  
   187  		}
   188  
   189  		return nil, false
   190  	}
   191  	return []string{}, true
   192  }
   193  
   194  func (v MountTemp) RuntimeDoc(names ...string) ([]string, bool) {
   195  	if len(names) > 0 {
   196  		switch names[0] {
   197  		case "Type":
   198  			return []string{}, true
   199  		case "Dest":
   200  			return []string{}, true
   201  		case "Contents":
   202  			return []string{}, true
   203  
   204  		}
   205  
   206  		return nil, false
   207  	}
   208  	return []string{}, true
   209  }
   210  
   211  func (v Secret) RuntimeDoc(names ...string) ([]string, bool) {
   212  	if len(names) > 0 {
   213  		switch names[0] {
   214  
   215  		}
   216  
   217  		return nil, false
   218  	}
   219  	return []string{}, true
   220  }
   221  
   222  func (v SecretOrString) RuntimeDoc(names ...string) ([]string, bool) {
   223  	if len(names) > 0 {
   224  		switch names[0] {
   225  		case "Value":
   226  			return []string{}, true
   227  		case "Secret":
   228  			return []string{}, true
   229  
   230  		}
   231  
   232  		return nil, false
   233  	}
   234  	return []string{}, true
   235  }
   236  
   237  func (v Socket) RuntimeDoc(names ...string) ([]string, bool) {
   238  	if len(names) > 0 {
   239  		switch names[0] {
   240  
   241  		}
   242  
   243  		return nil, false
   244  	}
   245  	return []string{}, true
   246  }
   247  
   248  func (v SocketOrString) RuntimeDoc(names ...string) ([]string, bool) {
   249  	if len(names) > 0 {
   250  		switch names[0] {
   251  		case "Value":
   252  			return []string{}, true
   253  		case "Socket":
   254  			return []string{}, true
   255  
   256  		}
   257  
   258  		return nil, false
   259  	}
   260  	return []string{}, true
   261  }
   262  
   263  func (v StringOrBool) RuntimeDoc(names ...string) ([]string, bool) {
   264  	if len(names) > 0 {
   265  		switch names[0] {
   266  		case "String":
   267  			return []string{}, true
   268  		case "Bool":
   269  			return []string{}, true
   270  
   271  		}
   272  
   273  		return nil, false
   274  	}
   275  	return []string{}, true
   276  }
   277  
   278  func (v TempDir) RuntimeDoc(names ...string) ([]string, bool) {
   279  	if len(names) > 0 {
   280  		switch names[0] {
   281  		case "Size":
   282  			return []string{}, true
   283  
   284  		}
   285  
   286  		return nil, false
   287  	}
   288  	return []string{}, true
   289  }