github.com/goharbor/go-client@v0.210.0/pkg/sdk/v2.0/models/retention_execution_task.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package models
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"context"
    10  
    11  	"github.com/go-openapi/strfmt"
    12  	"github.com/go-openapi/swag"
    13  )
    14  
    15  // RetentionExecutionTask retention execution task
    16  //
    17  // swagger:model RetentionExecutionTask
    18  type RetentionExecutionTask struct {
    19  
    20  	// end time
    21  	EndTime string `json:"end_time,omitempty"`
    22  
    23  	// execution id
    24  	ExecutionID int64 `json:"execution_id,omitempty"`
    25  
    26  	// id
    27  	ID int64 `json:"id,omitempty"`
    28  
    29  	// job id
    30  	JobID string `json:"job_id,omitempty"`
    31  
    32  	// repository
    33  	Repository string `json:"repository,omitempty"`
    34  
    35  	// retained
    36  	Retained int64 `json:"retained"`
    37  
    38  	// start time
    39  	StartTime string `json:"start_time,omitempty"`
    40  
    41  	// status
    42  	Status string `json:"status,omitempty"`
    43  
    44  	// status code
    45  	StatusCode int64 `json:"status_code"`
    46  
    47  	// status revision
    48  	StatusRevision int64 `json:"status_revision,omitempty"`
    49  
    50  	// total
    51  	Total int64 `json:"total"`
    52  }
    53  
    54  // Validate validates this retention execution task
    55  func (m *RetentionExecutionTask) Validate(formats strfmt.Registry) error {
    56  	return nil
    57  }
    58  
    59  // ContextValidate validates this retention execution task based on context it is used
    60  func (m *RetentionExecutionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    61  	return nil
    62  }
    63  
    64  // MarshalBinary interface implementation
    65  func (m *RetentionExecutionTask) MarshalBinary() ([]byte, error) {
    66  	if m == nil {
    67  		return nil, nil
    68  	}
    69  	return swag.WriteJSON(m)
    70  }
    71  
    72  // UnmarshalBinary interface implementation
    73  func (m *RetentionExecutionTask) UnmarshalBinary(b []byte) error {
    74  	var res RetentionExecutionTask
    75  	if err := swag.ReadJSON(b, &res); err != nil {
    76  		return err
    77  	}
    78  	*m = res
    79  	return nil
    80  }